From: Junio C Hamano Date: Tue, 4 Feb 2014 14:25:15 +0000 (+0100) Subject: t3004: add test for ls-files on symlinks via absolute paths X-Git-Tag: v2.0.0-rc0~155^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/f02033f1d02a55b32815a4702389e4d492f38bcc?hp=f02033f1d02a55b32815a4702389e4d492f38bcc t3004: add test for ls-files on symlinks via absolute paths When symlinks in the working tree are manipulated using the absolute path, git dereferences them, and tries to manipulate the link target instead. This causes most high-level functions to misbehave when acting on symlinks given via absolute paths. For example $ git add /dir/repo/symlink attempts to add the target of the symlink rather than the symlink itself, which is usually not what the user intends to do. This is a regression introduced by 18e051a: setup: translate symlinks in filename when using absolute paths (which did not take symlinks inside the work tree into consideration). Add a known-breakage test using the ls-files function, checking both if the symlink leads to a target in the same directory, and a target in the above directory. Signed-off-by: Martin Erik Werner Tested-by: Martin Erik Werner Signed-off-by: Junio C Hamano ---