diff options
| author | Junio C Hamano <gitster@pobox.com> | 2020-12-08 15:11:19 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2020-12-08 15:11:20 -0800 |
| commit | 9b3b4adb3fc586d14bbe2bfa7ba5f682a87e903d (patch) | |
| tree | de731e55f8d7e4fe0acb67bf48433c97cf5306f4 /t/test-lib-functions.sh | |
| parent | Merge branch 'ds/maintenance-part-2' (diff) | |
| parent | apply: don't use core.sharedRepository to create working tree files (diff) | |
| download | git-9b3b4adb3fc586d14bbe2bfa7ba5f682a87e903d.tar.gz git-9b3b4adb3fc586d14bbe2bfa7ba5f682a87e903d.zip | |
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. |
