git-count-objects: Fix a disk-space under-estimate on Cygwin
Cygwin has st_blocks in struct stat, but at least on NTFS, the field counts in blocks of st_blksize bytes, not in 512-byte blocks. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ramsay Jones committed
Nov 19, 2009 at 18:46 UTC
756078749f7a87bc50d4c22db18e26a09c45059d
1 file changed
+1
Makefile
+1
@@ -776,6 +776,7 @@ ifeq ($(uname_O),Cygwin)
776
NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes
777
NO_TRUSTABLE_FILEMODE = UnfortunatelyYes
778
OLD_ICONV = UnfortunatelyYes
779
+ NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
780
# There are conflicting reports about this.
781
# On some boxes NO_MMAP is needed, and not so elsewhere.
782
# Try commenting this out if you suspect MMAP is more efficient