mirror of
https://github.com/git/git.git
synced 2026-03-16 03:30:08 +01:00
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:
@@ -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*
|
||||
|
||||
Reference in New Issue
Block a user