Skip to content

Commit 1f55692

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
Merge pull request #3487 from vtbassmatt/huge-file-smudge-clean
Teach Git to handle huge files in smudge/clean
2 parents c9a4f3a + b6d4655 commit 1f55692

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

t/t1051-large-conversion.sh

+11
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,15 @@ test_expect_success EXPENSIVE,SIZE_T_IS_64BIT,!LONG_IS_64BIT \
109109
test $(test_file_size big) -eq $(cat big.size)
110110
'
111111

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

0 commit comments

Comments
 (0)