| author | Junio C Hamano <gitster@pobox.com> | |
| Tue, 28 Aug 2007 05:41:23 +0000 (22:41 -0700) | ||
| committer | Junio C Hamano <gitster@pobox.com> | |
| Tue, 28 Aug 2007 05:44:41 +0000 (22:44 -0700) | ||
| commit | 9277d60233a1829742aa2d9d20ddbfc3b2b7acde | |
| tree | eec15f54dfba51f537cfa93fd422c9f812430691 | tree | snapshot |
| parent | 6adcca3fe84e6859fc62df6c4ab916192ca02795 | commit | diff |
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>
"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 | diff | blob | history | |
| git.c | diff | blob | history |