Skip to content

Commit 95f0539

Browse files
stefanbellergitster
authored andcommitted
t3513: do not compress backup tar file
The test uses the 'z' option, i.e. "compress the output while at it", which is GNUism and not portable. Reported-by: Armin Kunaschik <megabreit@googlemail.com> Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 7654286 commit 95f0539

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

t/t3513-revert-submodule.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ test_description='revert can handle submodules'
1414
git_revert () {
1515
git status -su >expect &&
1616
ls -1pR * >>expect &&
17-
tar czf "$TRASH_DIRECTORY/tmp.tgz" * &&
17+
tar cf "$TRASH_DIRECTORY/tmp.tar" * &&
1818
git checkout "$1" &&
1919
git revert HEAD &&
2020
rm -rf * &&
21-
tar xzf "$TRASH_DIRECTORY/tmp.tgz" &&
21+
tar xf "$TRASH_DIRECTORY/tmp.tar" &&
2222
git status -su >actual &&
2323
ls -1pR * >>actual &&
2424
test_cmp expect actual &&

0 commit comments

Comments
 (0)