diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-07-10 13:59:05 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-07-10 13:59:05 -0700 |
commit | a9e87e3204280dd005bcb7d4bea6f833b27da03d (patch) | |
tree | c1077a1a57cda416a2ad999ad80a4e3b8fe65ec5 /t/test-lib-functions.sh | |
parent | 76de71b4879003ce2c2a7f9ac22e059183e00e11 (diff) | |
parent | 3ee83f48e5cfdfe2e3c783df1f3162e9383732fa (diff) | |
download | git-a9e87e3204280dd005bcb7d4bea6f833b27da03d.tar.gz |
Merge branch 'cc/shared-index-permfix' into maint
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.sh | 5 |
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= |