Code

new-workdir: handle rev-parse --git-dir not always giving full path
authorJulian Phillips <julian@quantumfyre.co.uk>
Tue, 19 Jun 2007 11:44:43 +0000 (12:44 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 Jun 2007 09:36:56 +0000 (02:36 -0700)
commit09381b458f5f1ac1a78df1aaeeb53aa79fcf2c4f
treec2155fe543e7578de3d16caf1790784ae7caafcf
parentf58494bf82c260bf8794b2744158d84fc242cbf0
new-workdir: handle rev-parse --git-dir not always giving full path

rev-parse --git-dir outputs a full path - except for the single case
of when the path would be $(pwd)/.git, in which case it outputs simply
.git.  Check for this special case and handle it.

Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/workdir/git-new-workdir