aboutsummaryrefslogtreecommitdiffstats
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-05 13:32:57 -0700
committerJunio C Hamano <gitster@pobox.com>2017-07-05 13:32:57 -0700
commit8e90578ffbce029a09c2a56e95ba3009f27e4937 (patch)
tree73b227154ea7014f0d93fecc0e31e70102d75f2b /t/test-lib-functions.sh
parent5ab148dda0076a136b4afb385d96bd9cdc4d2590 (diff)
parent3ee83f48e5cfdfe2e3c783df1f3162e9383732fa (diff)
downloadgit-8e90578ffbce029a09c2a56e95ba3009f27e4937.tar.gz
Merge branch 'cc/shared-index-permfix'
The split index code did not honor core.sharedrepository setting correctly. * cc/shared-index-permfix: t1700: make sure split-index respects core.sharedrepository t1301: move modebits() to test-lib-functions.sh read-cache: use shared perms when writing shared index
Diffstat (limited to 't/test-lib-functions.sh')
-rw-r--r--t/test-lib-functions.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index 5ee124332a..db622c3555 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -216,6 +216,11 @@ test_chmod () {
git update-index --add "--chmod=$@"
}
+# Get the modebits from a file.
+test_modebits () {
+ ls -l "$1" | sed -e 's|^\(..........\).*|\1|'
+}
+
# Unset a configuration variable, but don't fail if it doesn't exist.
test_unconfig () {
config_dir=