summaryrefslogtreecommitdiff
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-03-05 20:45:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-03-05 20:45:43 (GMT)
commitfa8baa4b2acf6f8be8f28bf84493e0889e45eb91 (patch)
tree2bce03d86ae374800d0f201dba9c2b681f5365f0 /t/test-lib-functions.sh
parent8a6444d50ea73350ae7e6083ecc63393749e5bb0 (diff)
parent817d03e10552c03fce7483df5034d72f883b2fab (diff)
downloadgit-fa8baa4b2acf6f8be8f28bf84493e0889e45eb91.zip
git-fa8baa4b2acf6f8be8f28bf84493e0889e45eb91.tar.gz
git-fa8baa4b2acf6f8be8f28bf84493e0889e45eb91.tar.bz2
Merge branch 'jc/diff-test-updates'
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 0d93e33..0698ce7 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
}