Skip to content

Commit 5ba95e0

Browse files
spectre10gitster
authored andcommitted
t0024: style fix
t0024 has multiple command invocations on a single line, which goes against the style described in CodingGuidelines, thus fix that. Also, use the -C flag to give the destination when using $TAR, therefore, not requiring a subshell. Signed-off-by: Ghanshyam Thakkar <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d262bfa commit 5ba95e0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

t/t0024-crlf-archive.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ test_expect_success setup '
2020
test_expect_success 'tar archive' '
2121
2222
git archive --format=tar HEAD >test.tar &&
23-
( mkdir untarred && cd untarred && "$TAR" -xf ../test.tar ) &&
23+
mkdir untarred &&
24+
"$TAR" xf test.tar -C untarred &&
2425
2526
test_cmp sample untarred/sample
2627
@@ -30,7 +31,11 @@ test_expect_success UNZIP 'zip archive' '
3031
3132
git archive --format=zip HEAD >test.zip &&
3233
33-
( mkdir unzipped && cd unzipped && "$GIT_UNZIP" ../test.zip ) &&
34+
mkdir unzipped &&
35+
(
36+
cd unzipped &&
37+
"$GIT_UNZIP" ../test.zip
38+
) &&
3439
3540
test_cmp sample unzipped/sample
3641

0 commit comments

Comments
 (0)