File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ test_expect_success setup '
9
9
10
10
git config core.autocrlf true &&
11
11
12
- printf "CRLF line ending\r\nAnd another\r\n" > sample &&
12
+ printf "CRLF line ending\r\nAnd another\r\n" >sample &&
13
13
git add sample &&
14
14
15
15
test_tick &&
@@ -19,8 +19,9 @@ test_expect_success setup '
19
19
20
20
test_expect_success ' tar archive' '
21
21
22
- git archive --format=tar HEAD |
23
- ( mkdir untarred && cd untarred && "$TAR" -xf - ) &&
22
+ git archive --format=tar HEAD >test.tar &&
23
+ mkdir untarred &&
24
+ "$TAR" xf test.tar -C untarred &&
24
25
25
26
test_cmp sample untarred/sample
26
27
@@ -30,7 +31,11 @@ test_expect_success UNZIP 'zip archive' '
30
31
31
32
git archive --format=zip HEAD >test.zip &&
32
33
33
- ( mkdir unzipped && cd unzipped && "$GIT_UNZIP" ../test.zip ) &&
34
+ mkdir unzipped &&
35
+ (
36
+ cd unzipped &&
37
+ "$GIT_UNZIP" ../test.zip
38
+ ) &&
34
39
35
40
test_cmp sample unzipped/sample
36
41
You can’t perform that action at this time.
0 commit comments