@@ -339,21 +339,21 @@ test_expect_success 'only enabled filters are available remotely' '
339339 test_cmp_bin remote.bar config.bar
340340'
341341
342- test_expect_success GZIP ' git archive --format=tgz' '
342+ test_expect_success ' git archive --format=tgz' '
343343 git archive --format=tgz HEAD >j.tgz
344344'
345345
346- test_expect_success GZIP ' git archive --format=tar.gz' '
346+ test_expect_success ' git archive --format=tar.gz' '
347347 git archive --format=tar.gz HEAD >j1.tar.gz &&
348348 test_cmp_bin j.tgz j1.tar.gz
349349'
350350
351- test_expect_success GZIP ' infer tgz from .tgz filename' '
351+ test_expect_success ' infer tgz from .tgz filename' '
352352 git archive --output=j2.tgz HEAD &&
353353 test_cmp_bin j.tgz j2.tgz
354354'
355355
356- test_expect_success GZIP ' infer tgz from .tar.gz filename' '
356+ test_expect_success ' infer tgz from .tar.gz filename' '
357357 git archive --output=j3.tar.gz HEAD &&
358358 test_cmp_bin j.tgz j3.tar.gz
359359'
@@ -363,31 +363,31 @@ test_expect_success GZIP 'extract tgz file' '
363363 test_cmp_bin b.tar j.tar
364364'
365365
366- test_expect_success GZIP ' remote tar.gz is allowed by default' '
366+ test_expect_success ' remote tar.gz is allowed by default' '
367367 git archive --remote=. --format=tar.gz HEAD >remote.tar.gz &&
368368 test_cmp_bin j.tgz remote.tar.gz
369369'
370370
371- test_expect_success GZIP ' remote tar.gz can be disabled' '
371+ test_expect_success ' remote tar.gz can be disabled' '
372372 git config tar.tar.gz.remote false &&
373373 test_must_fail git archive --remote=. --format=tar.gz HEAD \
374374 >remote.tar.gz
375375'
376376
377- test_expect_success ' git archive --format=tgz (internal gzip)' '
378- test_config tar.tgz.command "git archive gzip" &&
379- git archive --format=tgz HEAD >internal_gzip .tgz
377+ test_expect_success GZIP ' git archive --format=tgz (external gzip)' '
378+ test_config tar.tgz.command "gzip -cn " &&
379+ git archive --format=tgz HEAD >external_gzip .tgz
380380'
381381
382- test_expect_success ' git archive --format=tar.gz (internal gzip)' '
383- test_config tar.tar.gz.command "git archive gzip" &&
384- git archive --format=tar.gz HEAD >internal_gzip .tar.gz &&
385- test_cmp_bin internal_gzip .tgz internal_gzip .tar.gz
382+ test_expect_success GZIP ' git archive --format=tar.gz (external gzip)' '
383+ test_config tar.tar.gz.command "gzip -cn " &&
384+ git archive --format=tar.gz HEAD >external_gzip .tar.gz &&
385+ test_cmp_bin external_gzip .tgz external_gzip .tar.gz
386386'
387387
388- test_expect_success GZIP ' extract tgz file (internal gzip)' '
389- gzip -d -c <internal_gzip .tgz >internal_gzip .tar &&
390- test_cmp_bin b.tar internal_gzip .tar
388+ test_expect_success GZIP ' extract tgz file (external gzip)' '
389+ gzip -d -c <external_gzip .tgz >external_gzip .tar &&
390+ test_cmp_bin b.tar external_gzip .tar
391391'
392392
393393test_expect_success ' archive and :(glob)' '
0 commit comments