]> git.ipfire.org Git - thirdparty/git.git/commit - transport-helper.c
remote-helpers: export GIT_DIR variable to helpers
authorDmitry Ivankov <divanorama@gmail.com>
Sat, 16 Jul 2011 13:03:28 +0000 (15:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Jul 2011 18:17:47 +0000 (11:17 -0700)
commite173587252ea0db16efc5c64c2cb165ccb406495
tree9c34a47459d9c83803e39c8763a1af56ececc2ef
parentb4b872994b59be397519ff76354ba4002e74de48
remote-helpers: export GIT_DIR variable to helpers

The gitdir capability is recognized by git and can be used to tell
the helper where the .git directory is. But it is not mentioned in
the documentation and considered worse than if gitdir was passed
via GIT_DIR environment variable.

Remove support for the gitdir capability and export GIT_DIR instead.
Teach testgit to use env instead of the now-removed gitdir command.

[sr: fixed up documentation]

Signed-off-by: Dmitry Ivankov <divanorama@gmail.com>
Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-remote-helpers.txt
git-remote-testgit.py
transport-helper.c