Fix up path-cleanup in git_path() properly
commitf17a1b1bec5cef1d39521aac92f94858acda6433
authorLinus Torvalds <torvalds@g5.osdl.org>
Wed, 6 Jul 2005 01:10:59 +0000 (5 18:10 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 6 Jul 2005 01:10:59 +0000 (5 18:10 -0700)
tree680718d879623d294b4cdf36bd00d97016b5cc9c
parent319aae27567f3ddc40e9083c425f7eaf567006a0
Fix up path-cleanup in git_path() properly

GIT_DIR=.  ends up being what some of the pack senders use, and we
sometimes messed up when cleaning up the path, ie a ".//HEAD" was
cleaned up into "/HEAD", not "HEAD" like it should be.

We should do some other cleanup, and probably also verify that symlinks
don't point to outside the git area.
sha1_file.c