From 69fdfa18b55fdf5a2245473ef01c656d4bced269 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Fri, 23 Mar 2007 10:58:53 +0100 Subject: [PATCH] Work around missing stat(1) command. MinGW does not have the stat command. Use ls -l to find out the size of a file. --- t/t5300-pack-object.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index b985bc5db5..48c38cfb4d 100755 --- a/t/t5300-pack-object.sh +++ b/t/t5300-pack-object.sh @@ -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*