summaryrefslogtreecommitdiff
path: root/t/t0055-beyond-symlinks.sh
AgeCommit message (Collapse)AuthorFilesLines
2008-08-04add: refuse to add working tree items beyond symlinksLibravatar Junio C Hamano1-1/+6
This is the same fix for the issue of adding "sym/path" when "sym" is a symblic link that points at a directory "dir" with "path" in it. Signed-off-by: Junio C Hamano <gitster@pobox.com>
2008-08-04update-index: refuse to add working tree items beyond symlinksLibravatar Junio C Hamano1-0/+20
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>