summaryrefslogtreecommitdiff
path: root/t/t4009-diff-rename-4.sh
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2015-02-23 18:14:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-02-23 19:45:39 (GMT)
commit817d03e10552c03fce7483df5034d72f883b2fab (patch)
tree2523d04ec95677f83cd0a93589fc39f81a36b639 /t/t4009-diff-rename-4.sh
parentdb7b9e3ad39a4135072a1fd619b76d1c1093b501 (diff)
downloadgit-817d03e10552c03fce7483df5034d72f883b2fab.zip
git-817d03e10552c03fce7483df5034d72f883b2fab.tar.gz
git-817d03e10552c03fce7483df5034d72f883b2fab.tar.bz2
test_ln_s_add: refresh stat info of fake symbolic links
We have a helper function test_ln_s_add that inserts a symbolic link into the index even if the file system does not support symbolic links. There is a small flaw in the emulation path: the added entry does not pick up stat information of the fake symbolic link from the file system, as a consequence, the index is not exactly the same as for the "regular" path (where symbolic links are available). To fix this, just call git update-index again. This flaw was revealed by the earlier change that tightened compare_diff_raw(), because a test case in t4008 depends on the correctly updated index. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4009-diff-rename-4.sh')
0 files changed, 0 insertions, 0 deletions