Message ID | 8650936b8d4e975cd5260cfe312cf79b36c2dcc5.1586612423.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Make the tests that test core.hideDotFiles more robust | expand |
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index 7a7e7a38312..2f81463a240 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -1547,6 +1547,6 @@ test_bitmap_traversal () { # Tests for the hidden file attribute on windows is_hidden () { # Use the output of `attrib`, ignore the absolute path - case "$(attrib "$1")" in *H*?:*) return 0;; esac + case "$("$SYSTEMROOT"/system32/attrib "$1")" in *H*?:*) return 0;; esac return 1 }