author | Linus Torvalds <torvalds@g5.osdl.org> | |
Wed, 6 Jul 2005 01:10:59 +0000 (18:10 -0700) | ||
committer | Linus Torvalds <torvalds@g5.osdl.org> | |
Wed, 6 Jul 2005 01:10:59 +0000 (18:10 -0700) | ||
commit | f17a1b1bec5cef1d39521aac92f94858acda6433 | |
tree | 680718d879623d294b4cdf36bd00d97016b5cc9c | tree | snapshot |
parent | 319aae27567f3ddc40e9083c425f7eaf567006a0 | commit | diff |
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.
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 | diff | blob | history |