]> git.ipfire.org Git - thirdparty/git.git/commit
t0060: add test for prefix_path on symlinks via absolute paths
authorMartin Erik Werner <martinerikwerner@gmail.com>
Tue, 4 Feb 2014 14:25:16 +0000 (15:25 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Feb 2014 19:25:15 +0000 (11:25 -0800)
commit74af95d6aac03e1a1227c78d0d0ea8bbc2fa2b4d
treeb20768e199b71f17ef1c6efff391bf641d1e02c9
parentf02033f1d02a55b32815a4702389e4d492f38bcc
t0060: add test for prefix_path 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 applies to most high-level commands but prefix_path is the common
denominator for all of them.

Add a known-breakage tests using the prefix_path function, which
currently uses real_path, causing the dereference.

Signed-off-by: Martin Erik Werner <martinerikwerner@gmail.com>
Reviewed-by: Duy Nguyen <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0060-path-utils.sh