]> git.ipfire.org Git - thirdparty/git.git/commit
git --bare cmd: do not unconditionally nuke GIT_DIR
authorJunio C Hamano <gitster@pobox.com>
Tue, 28 Aug 2007 05:41:23 +0000 (22:41 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Aug 2007 05:44:41 +0000 (22:44 -0700)
commit9277d60233a1829742aa2d9d20ddbfc3b2b7acde
treeeec15f54dfba51f537cfa93fd422c9f812430691
parent6adcca3fe84e6859fc62df6c4ab916192ca02795
git --bare cmd: do not unconditionally nuke GIT_DIR

"GIT_DIR=some.where git --bare cmd" and worse yet
"git --git-dir=some.where --bare cmd" were very confusing.  They
both ignored git-dir specified, and instead made $cwd as GIT_DIR.

This changes --bare not to override existing GIT_DIR.

This has been like this for a long time.  Let's hope nobody sane
relied on this insane behaviour.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git.txt
git.c