]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/test-lib-functions.sh
apply: don't use core.sharedRepository to create working tree files
[thirdparty/git.git] / t / test-lib-functions.sh
index 8d59b90348ea898ca983e8bbd0742de495a8d36d..7195d55c907cc60aacdb14a2ff4d52ba06b54822 100644 (file)
@@ -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.