diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-12-09 02:11:19 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-12-09 02:11:20 +0300 |
commit | 9b3b4adb3fc586d14bbe2bfa7ba5f682a87e903d (patch) | |
tree | de731e55f8d7e4fe0acb67bf48433c97cf5306f4 /t/test-lib-functions.sh | |
parent | 945158016ac82fb8ecb4591a5ee8b3b4e165d842 (diff) | |
parent | eb3c027e1779d0d1b5bd3b4e96a108461c9759a5 (diff) |
Merge branch 'mt/do-not-use-scld-in-working-tree'
"git apply" adjusted the permission bits of working-tree files and
directories according core.sharedRepository setting by mistake and
for a long time, which has been corrected.
* mt/do-not-use-scld-in-working-tree:
apply: don't use core.sharedRepository to create working tree files
Diffstat (limited to 't/test-lib-functions.sh')
-rw-r--r-- | t/test-lib-functions.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index 7ba3011b90..0f7f247159 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -367,9 +367,9 @@ test_chmod () { git update-index --add "--chmod=$@" } -# Get the modebits from a file. +# Get the modebits from a file or directory. test_modebits () { - ls -l "$1" | sed -e 's|^\(..........\).*|\1|' + ls -ld "$1" | sed -e 's|^\(..........\).*|\1|' } # Unset a configuration variable, but don't fail if it doesn't exist. |