Skip to content

Commit 7560787

Browse files
Ramsay Jonesgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 78d553b commit 7560787

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,7 @@ ifeq ($(uname_O),Cygwin)
776776
NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes
777777
NO_TRUSTABLE_FILEMODE = UnfortunatelyYes
778778
OLD_ICONV = UnfortunatelyYes
779+
NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
779780
# There are conflicting reports about this.
780781
# On some boxes NO_MMAP is needed, and not so elsewhere.
781782
# Try commenting this out if you suspect MMAP is more efficient

0 commit comments

Comments
 (0)