Eli Barzilay [off-list ref] writes:
It looks like setup_git_directory_gently() returns the original CWD,...
It is designed to return what we internally call "prefix". You however
have to be careful as it can return NULL or an empty string when you are
already at the top of the working tree.
On May 5, Junio C Hamano wrote:
Eli Barzilay [off-list ref] writes:
quoted
It looks like setup_git_directory_gently() returns the original CWD,...
It is designed to return what we internally call "prefix". You
however have to be careful as it can return NULL or an empty string
when you are already at the top of the working tree.
OK, in this case it looks like it should work as expected. At least
provided that chdir("") stays in the same directory -- and given the
call at the end of handle_alias(), it looks like this assumption is
already made. Does this sound right?
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!