File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ test_expect_success 'bogus GIT_INDEX_VERSION issues warning' '
13
13
rm -f .git/index &&
14
14
GIT_INDEX_VERSION=2bogus &&
15
15
export GIT_INDEX_VERSION &&
16
- git add a 2>&1 | sed "s/[0-9]//" >actual.err &&
16
+ git add a 2>err &&
17
+ sed "s/[0-9]//" err >actual.err &&
17
18
sed -e "s/ Z$/ /" <<-\EOF >expect.err &&
18
19
warning: GIT_INDEX_VERSION set, but the value is invalid.
19
20
Using version Z
@@ -27,7 +28,8 @@ test_expect_success 'out of bounds GIT_INDEX_VERSION issues warning' '
27
28
rm -f .git/index &&
28
29
GIT_INDEX_VERSION=1 &&
29
30
export GIT_INDEX_VERSION &&
30
- git add a 2>&1 | sed "s/[0-9]//" >actual.err &&
31
+ git add a 2>err &&
32
+ sed "s/[0-9]//" err >actual.err &&
31
33
sed -e "s/ Z$/ /" <<-\EOF >expect.err &&
32
34
warning: GIT_INDEX_VERSION set, but the value is invalid.
33
35
Using version Z
@@ -50,7 +52,8 @@ test_expect_success 'out of bounds index.version issues warning' '
50
52
sane_unset GIT_INDEX_VERSION &&
51
53
rm -f .git/index &&
52
54
git config --add index.version 1 &&
53
- git add a 2>&1 | sed "s/[0-9]//" >actual.err &&
55
+ git add a 2>err &&
56
+ sed "s/[0-9]//" err >actual.err &&
54
57
sed -e "s/ Z$/ /" <<-\EOF >expect.err &&
55
58
warning: index.version set, but the value is invalid.
56
59
Using version Z
You can’t perform that action at this time.
0 commit comments