Re: more concerns about '--git-dir'

2014-05-23 Thread Pasha Bolokhov
>> You won't notice anything different in the output of course, but the >> environment will be odd: >> GIT_DIR=../tmp/./././.git >> GIT_WORK_TREE=$HOME/tmp >> Notice how the work-tree has been normalized and git-dir hasn't. It's >> kinda hard to imagine when this can lead to an error, but n

Re: more concerns about '--git-dir'

2014-05-23 Thread Junio C Hamano
Pasha Bolokhov writes: > 1) an apparent missing "normalize_path(git_dir)", when GIT_DIR is an > absolute path: > > don't even need to name the repository anything different, but run this > command: > > $ cd ~/tmp/ > $ git init > $ git --git-dir=$HOME/tmp/../tmp/./././.git --work-tree=$HOME/tmp/.

more concerns about '--git-dir'

2014-05-23 Thread Pasha Bolokhov
Hi, Since at it, I have discovered a couple more minor things with this rarely-used option. I'm however a bit wary of stepping on somebody's nerve with this sort of picking things.. :) Nevertheless, 1) an apparent missing "normalize_path(git_dir)", when GIT_DIR is an abso