Skip to content

Commit a5855fd

Browse files
rybakgitster
authored andcommitted
t2019: don't create unused files
Tests in t2019-checkout-ambiguous-ref.sh redirect two invocations of "git checkout" to files "stdout" and "stderr". Several assertions are made using file "stderr". File "stdout", however, is unused. Don't redirect standard output of "git checkout" to file "stdout" in t2019-checkout-ambiguous-ref.sh to avoid creating unnecessary files. Signed-off-by: Andrei Rybak <[email protected]> Reviewed-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dca675c commit a5855fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t2019-checkout-ambiguous-ref.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test_expect_success 'setup ambiguous refs' '
1616
'
1717

1818
test_expect_success 'checkout ambiguous ref succeeds' '
19-
git checkout ambiguity >stdout 2>stderr
19+
git checkout ambiguity 2>stderr
2020
'
2121

2222
test_expect_success 'checkout produces ambiguity warning' '
@@ -37,7 +37,7 @@ test_expect_success 'checkout reports switch to branch' '
3737
'
3838

3939
test_expect_success 'checkout vague ref succeeds' '
40-
git checkout vagueness >stdout 2>stderr &&
40+
git checkout vagueness 2>stderr &&
4141
test_set_prereq VAGUENESS_SUCCESS
4242
'
4343

0 commit comments

Comments
 (0)