Re: [PATCH] Make setup_git_env() resolve .git file when $GIT_DIR is not specified

2013-09-03 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > This makes reinitializing on a .git file repository work. > > This is probably the only case that setup_git_env() (via > set_git_dir()) is called on a .git file. Other cases in > setup_git_dir_gently() and enter_repo() both cover .git file case > explicitly because

[PATCH] Make setup_git_env() resolve .git file when $GIT_DIR is not specified

2013-08-30 Thread Nguyễn Thái Ngọc Duy
This makes reinitializing on a .git file repository work. This is probably the only case that setup_git_env() (via set_git_dir()) is called on a .git file. Other cases in setup_git_dir_gently() and enter_repo() both cover .git file case explicitly because they need to verify the target repo is val