diff --git a/t/t0001-init.sh b/t/t0001-init.sh index eecff57628..36046a695c 100755 --- a/t/t0001-init.sh +++ b/t/t0001-init.sh @@ -360,7 +360,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 e4850b778c..353fd5471f 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 }