From: Dmitry Ivankov Date: Wed, 13 Jul 2011 18:10:40 GMT Subject: Re: [PATCH v2 3/3] remote-helpers: export GIT_DIR variable to helpers Message-ID: In-Reply-To: Hi! On Wed, Jul 13, 2011 at 11:36 PM, Sverre Rabbelier wrote: > Heya, > > On Wed, Jul 13, 2011 at 19:10, Dmitry Ivankov wrote: >> Instead of documenting capability gitdir export GIT_DIR. Turned out >> to be quite straightforward. > > But you _also_ documented the gitdir capability? I'm confused. Oww, it was a bad idea to amend previous commit in a hurry and not to read the whole diff after. Of course Documentation/git-remote-helpers.txt should have only a GIT_DIR hunk: diff --git a/Documentation/git-remote-helpers.txt b/Documentation/git-remote-helpers.txt index 58f6ad4..feda03e 100644 --- a/Documentation/git-remote-helpers.txt +++ b/Documentation/git-remote-helpers.txt @@ -47,6 +47,9 @@ arguments. The first argument specifies a remote repository as in git; it is either the name of a configured remote or a URL. The second argument specifies a URL; it is usually of the form '://
', but any arbitrary string is possible. +'GIT_DIR' environment variable is set up for the remote helper and +can be used to store some additional data or to invoke auxiliary git +commands. When git encounters a URL of the form '://
', where '' is a protocol that it cannot handle natively, it > > -- > Cheers, > > Sverre Rabbelier >