git-count-objects: Fix a disk-space under-estimate on Cygwin
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Thu, 19 Nov 2009 18:46:24 +0000 (18:46 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Nov 2009 07:41:29 +0000 (23:41 -0800)
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>
Makefile
index fea237bc80978c1011793ee0cbd8398b2e9f773b..79195c875b7bab0ebb3f3f59167171ada952a384 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -776,6 +776,7 @@ ifeq ($(uname_O),Cygwin)
        NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes
        NO_TRUSTABLE_FILEMODE = UnfortunatelyYes
        OLD_ICONV = UnfortunatelyYes
+       NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
        # There are conflicting reports about this.
        # On some boxes NO_MMAP is needed, and not so elsewhere.
        # Try commenting this out if you suspect MMAP is more efficient