diff --git a/t/t0001-init.sh b/t/t0001-init.sh index 43c361f006d7f8..6073d30982ba20 100755 --- a/t/t0001-init.sh +++ b/t/t0001-init.sh @@ -357,7 +357,7 @@ test_expect_success SYMLINKS 're-init to move gitdir symlink' ' # 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 } diff --git a/t/t5611-clone-config.sh b/t/t5611-clone-config.sh index e4850b778c2f20..353fd5471f8b1b 100755 --- a/t/t5611-clone-config.sh +++ b/t/t5611-clone-config.sh @@ -40,7 +40,7 @@ test_expect_success 'clone -c config is available during clone' ' # 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 }