Re: [PATCH v2 3/3] remote-helpers: export GIT_DIR variable to helpers
- From
Dmitry Ivankov <divanorama@gmail.com>
- Date
- Jul 13, 2011, 18:10 UTC
- Message-ID
- <CA+gfSn9QeK84xVWrxYBGOwfWbeuS7cU_=D10Lrn8S__iygx+mg@mail.gmail.com>
- In-Reply-To
- <CAGdFq_gAyjz+WCpK5qW7xcyGxSx4gg-A7Ju-AaHQ2o9mM_=pvQ@mail.gmail.com>
Hi!
On Wed, Jul 13, 2011 at 11:36 PM, Sverre Rabbelier <srabbelier@gmail.com> wrote:
Show 7 quoted lines
> Heya, > > On Wed, Jul 13, 2011 at 19:10, Dmitry Ivankov <divanorama@gmail.com> 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 '<transport>://<address>', 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 '<transport>://<address>', where '<transport>' is a protocol that it cannot handle natively, it > > -- > Cheers, > > Sverre Rabbelier >