@@ -164,7 +164,7 @@ check_tar with_olde-prefix olde-
164
164
test_expect_success ' git archive on large files' '
165
165
test_config core.bigfilethreshold 1 &&
166
166
git archive HEAD >b3.tar &&
167
- test_cmp b.tar b3.tar
167
+ test_cmp_bin b.tar b3.tar
168
168
'
169
169
170
170
test_expect_success \
@@ -173,15 +173,15 @@ test_expect_success \
173
173
174
174
test_expect_success \
175
175
' git archive vs. the same in a bare repo' \
176
- ' test_cmp b.tar b3.tar'
176
+ ' test_cmp_bin b.tar b3.tar'
177
177
178
178
test_expect_success ' git archive with --output' \
179
179
' git archive --output=b4.tar HEAD &&
180
- test_cmp b.tar b4.tar'
180
+ test_cmp_bin b.tar b4.tar'
181
181
182
182
test_expect_success ' git archive --remote' \
183
183
' git archive --remote=. HEAD >b5.tar &&
184
- test_cmp b.tar b5.tar'
184
+ test_cmp_bin b.tar b5.tar'
185
185
186
186
test_expect_success \
187
187
' validate file modification time' \
@@ -198,7 +198,7 @@ test_expect_success \
198
198
199
199
test_expect_success ' git archive with --output, override inferred format' '
200
200
git archive --format=tar --output=d4.zip HEAD &&
201
- test_cmp b.tar d4.zip
201
+ test_cmp_bin b.tar d4.zip
202
202
'
203
203
204
204
test_expect_success \
@@ -244,34 +244,34 @@ test_expect_success 'archive --list shows only enabled remote filters' '
244
244
test_expect_success ' invoke tar filter by format' '
245
245
git archive --format=tar.foo HEAD >config.tar.foo &&
246
246
tr ab ba <config.tar.foo >config.tar &&
247
- test_cmp b.tar config.tar &&
247
+ test_cmp_bin b.tar config.tar &&
248
248
git archive --format=bar HEAD >config.bar &&
249
249
tr ab ba <config.bar >config.tar &&
250
- test_cmp b.tar config.tar
250
+ test_cmp_bin b.tar config.tar
251
251
'
252
252
253
253
test_expect_success ' invoke tar filter by extension' '
254
254
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 &&
256
256
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
258
258
'
259
259
260
260
test_expect_success ' default output format remains tar' '
261
261
git archive -o config-implicit.baz HEAD &&
262
- test_cmp b.tar config-implicit.baz
262
+ test_cmp_bin b.tar config-implicit.baz
263
263
'
264
264
265
265
test_expect_success ' extension matching requires dot' '
266
266
git archive -o config-implicittar.foo HEAD &&
267
- test_cmp b.tar config-implicittar.foo
267
+ test_cmp_bin b.tar config-implicittar.foo
268
268
'
269
269
270
270
test_expect_success ' only enabled filters are available remotely' '
271
271
test_must_fail git archive --remote=. --format=tar.foo HEAD \
272
272
>remote.tar.foo &&
273
273
git archive --remote=. --format=bar >remote.bar HEAD &&
274
- test_cmp remote.bar config.bar
274
+ test_cmp_bin remote.bar config.bar
275
275
'
276
276
277
277
test_expect_success GZIP ' git archive --format=tgz' '
@@ -280,27 +280,27 @@ test_expect_success GZIP 'git archive --format=tgz' '
280
280
281
281
test_expect_success GZIP ' git archive --format=tar.gz' '
282
282
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
284
284
'
285
285
286
286
test_expect_success GZIP ' infer tgz from .tgz filename' '
287
287
git archive --output=j2.tgz HEAD &&
288
- test_cmp j.tgz j2.tgz
288
+ test_cmp_bin j.tgz j2.tgz
289
289
'
290
290
291
291
test_expect_success GZIP ' infer tgz from .tar.gz filename' '
292
292
git archive --output=j3.tar.gz HEAD &&
293
- test_cmp j.tgz j3.tar.gz
293
+ test_cmp_bin j.tgz j3.tar.gz
294
294
'
295
295
296
296
test_expect_success GZIP ' extract tgz file' '
297
297
gzip -d -c <j.tgz >j.tar &&
298
- test_cmp b.tar j.tar
298
+ test_cmp_bin b.tar j.tar
299
299
'
300
300
301
301
test_expect_success GZIP ' remote tar.gz is allowed by default' '
302
302
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
304
304
'
305
305
306
306
test_expect_success GZIP ' remote tar.gz can be disabled' '
0 commit comments