]> asedeno.scripts.mit.edu Git - git.git/commit
update-index: refuse to add working tree items beyond symlinks
authorJunio C Hamano <gitster@pobox.com>
Mon, 4 Aug 2008 07:51:42 +0000 (00:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Aug 2008 06:31:23 +0000 (23:31 -0700)
commit806d13b1ccdbdde4bbdfb96902791c4b7ed125f6
tree139db78f9efdb5f588c1b504b0dc8700d9d9039c
parentfba5279db904aa49bb75bb31614571b9b6d75b33
update-index: refuse to add working tree items beyond symlinks

When "sym" is a symbolic link that is inside the working tree, and it
points at a directory "dir" that has "path" in it, "update-index --add
sym/path" used to mistakenly add "sym/path" as if "sym" were a normal
directory.

"git apply", "git diff" and "git merge" have been taught about this issue
some time ago, but "update-index" and "add" have been left ignorant for
too long.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-update-index.c
t/t0055-beyond-symlinks.sh [new file with mode: 0755]