@@ -164,7 +164,7 @@ check_tar with_olde-prefix olde-
164164test_expect_success ' git archive on large files' '
165165 test_config core.bigfilethreshold 1 &&
166166 git archive HEAD >b3.tar &&
167- test_cmp b.tar b3.tar
167+ test_cmp_bin b.tar b3.tar
168168'
169169
170170test_expect_success \
@@ -173,15 +173,15 @@ test_expect_success \
173173
174174test_expect_success \
175175 ' git archive vs. the same in a bare repo' \
176- ' test_cmp b.tar b3.tar'
176+ ' test_cmp_bin b.tar b3.tar'
177177
178178test_expect_success ' git archive with --output' \
179179 ' git archive --output=b4.tar HEAD &&
180- test_cmp b.tar b4.tar'
180+ test_cmp_bin b.tar b4.tar'
181181
182182test_expect_success ' git archive --remote' \
183183 ' git archive --remote=. HEAD >b5.tar &&
184- test_cmp b.tar b5.tar'
184+ test_cmp_bin b.tar b5.tar'
185185
186186test_expect_success \
187187 ' validate file modification time' \
@@ -198,7 +198,7 @@ test_expect_success \
198198
199199test_expect_success ' git archive with --output, override inferred format' '
200200 git archive --format=tar --output=d4.zip HEAD &&
201- test_cmp b.tar d4.zip
201+ test_cmp_bin b.tar d4.zip
202202'
203203
204204test_expect_success \
@@ -244,34 +244,34 @@ test_expect_success 'archive --list shows only enabled remote filters' '
244244test_expect_success ' invoke tar filter by format' '
245245 git archive --format=tar.foo HEAD >config.tar.foo &&
246246 tr ab ba <config.tar.foo >config.tar &&
247- test_cmp b.tar config.tar &&
247+ test_cmp_bin b.tar config.tar &&
248248 git archive --format=bar HEAD >config.bar &&
249249 tr ab ba <config.bar >config.tar &&
250- test_cmp b.tar config.tar
250+ test_cmp_bin b.tar config.tar
251251'
252252
253253test_expect_success ' invoke tar filter by extension' '
254254 git archive -o config-implicit.tar.foo HEAD &&
255- test_cmp config.tar.foo config-implicit.tar.foo &&
255+ test_cmp_bin config.tar.foo config-implicit.tar.foo &&
256256 git archive -o config-implicit.bar HEAD &&
257- test_cmp config.tar.foo config-implicit.bar
257+ test_cmp_bin config.tar.foo config-implicit.bar
258258'
259259
260260test_expect_success ' default output format remains tar' '
261261 git archive -o config-implicit.baz HEAD &&
262- test_cmp b.tar config-implicit.baz
262+ test_cmp_bin b.tar config-implicit.baz
263263'
264264
265265test_expect_success ' extension matching requires dot' '
266266 git archive -o config-implicittar.foo HEAD &&
267- test_cmp b.tar config-implicittar.foo
267+ test_cmp_bin b.tar config-implicittar.foo
268268'
269269
270270test_expect_success ' only enabled filters are available remotely' '
271271 test_must_fail git archive --remote=. --format=tar.foo HEAD \
272272 >remote.tar.foo &&
273273 git archive --remote=. --format=bar >remote.bar HEAD &&
274- test_cmp remote.bar config.bar
274+ test_cmp_bin remote.bar config.bar
275275'
276276
277277test_expect_success GZIP ' git archive --format=tgz' '
@@ -280,27 +280,27 @@ test_expect_success GZIP 'git archive --format=tgz' '
280280
281281test_expect_success GZIP ' git archive --format=tar.gz' '
282282 git archive --format=tar.gz HEAD >j1.tar.gz &&
283- test_cmp j.tgz j1.tar.gz
283+ test_cmp_bin j.tgz j1.tar.gz
284284'
285285
286286test_expect_success GZIP ' infer tgz from .tgz filename' '
287287 git archive --output=j2.tgz HEAD &&
288- test_cmp j.tgz j2.tgz
288+ test_cmp_bin j.tgz j2.tgz
289289'
290290
291291test_expect_success GZIP ' infer tgz from .tar.gz filename' '
292292 git archive --output=j3.tar.gz HEAD &&
293- test_cmp j.tgz j3.tar.gz
293+ test_cmp_bin j.tgz j3.tar.gz
294294'
295295
296296test_expect_success GZIP ' extract tgz file' '
297297 gzip -d -c <j.tgz >j.tar &&
298- test_cmp b.tar j.tar
298+ test_cmp_bin b.tar j.tar
299299'
300300
301301test_expect_success GZIP ' remote tar.gz is allowed by default' '
302302 git archive --remote=. --format=tar.gz HEAD >remote.tar.gz &&
303- test_cmp j.tgz remote.tar.gz
303+ test_cmp_bin j.tgz remote.tar.gz
304304'
305305
306306test_expect_success GZIP ' remote tar.gz can be disabled' '
0 commit comments