Skip to content

Commit

Permalink
Merge pull request #3487 from vtbassmatt/huge-file-smudge-clean
Browse files Browse the repository at this point in the history
Teach Git to handle huge files in smudge/clean
  • Loading branch information
dscho authored and Git for Windows Build Agent committed Jan 11, 2022
2 parents c9a4f3a + b6d4655 commit 1f55692
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions t/t1051-large-conversion.sh
Expand Up @@ -109,4 +109,15 @@ test_expect_success EXPENSIVE,SIZE_T_IS_64BIT,!LONG_IS_64BIT \
test $(test_file_size big) -eq $(cat big.size)
'

# This clean filter writes down the size of input it receives. By checking against
# the actual size, we ensure that cleaning doesn't mangle large files on 64-bit Windows.
test_expect_success EXPENSIVE,SIZE_T_IS_64BIT,!LONG_IS_64BIT \
'files over 4GB convert on input' '
test-tool genzeros $((5*1024*1024*1024)) >big &&
test_config filter.checklarge.clean "wc -c >big.size" &&
echo "big filter=checklarge" >.gitattributes &&
git add big &&
test $(test_file_size big) -eq $(cat big.size)
'

test_done

0 comments on commit 1f55692

Please sign in to comment.