summaryrefslogtreecommitdiff
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2015-03-13 22:56:09 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-03-13 22:56:10 -0700
commitbb8f6de064a2b92febe06c5cbfcf98c686dce8a4 (patch)
tree8fc741454bdeaa37b211ede730c58f72bc36e5c9 /t/test-lib-functions.sh
parentMerge branch 'jk/diffcore-rename-duplicate' into maint (diff)
parenttest_ln_s_add: refresh stat info of fake symbolic links (diff)
downloadtgif-bb8f6de064a2b92febe06c5cbfcf98c686dce8a4.tar.xz
Merge branch 'jc/diff-test-updates' into maint
Test clean-up. * jc/diff-test-updates: test_ln_s_add: refresh stat info of fake symbolic links t4008: modernise style t/diff-lib: check exact object names in compare_diff_raw tests: do not borrow from COPYING and README from the real source t4010: correct expected object names t9300: correct expected object names t4008: correct stale comments
Diffstat (limited to 't/test-lib-functions.sh')
-rw-r--r--t/test-lib-functions.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index 0d93e33de4..0698ce7908 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -745,7 +745,9 @@ test_ln_s_add () {
else
printf '%s' "$1" >"$2" &&
ln_s_obj=$(git hash-object -w "$2") &&
- git update-index --add --cacheinfo 120000 $ln_s_obj "$2"
+ git update-index --add --cacheinfo 120000 $ln_s_obj "$2" &&
+ # pick up stat info from the file
+ git update-index "$2"
fi
}