Work around missing stat(1) command.

MinGW does not have the stat command. Use ls -l to find out the size of
a file.
This commit is contained in:
Johannes Sixt
2007-03-23 10:58:53 +01:00
parent eadf0c5cfd
commit 69fdfa18b5

View File

@@ -26,6 +26,12 @@ corrupt()
) < $1 > $2
}
test "$no_symlinks" && {
stat() {
ls -l "$3" | tr -s ' ' ' ' | cut -d' ' -f5
}
}
test_expect_success \
'setup' \
'rm -f .git/index*