Skip to content

Commit ed5288c

Browse files
rybakgitster
authored andcommitted
t0300: don't create unused file
Test 'credential config with partial URLs' in t0300-credentials.sh contains three "git credential fill" invocations. For two of the invocations, the test asserts presence or absence of string "yep" in the standard output. For the third test it checks for an error message in standard error. Don't redirect standard output of "git credential" to file "stdout" in t0300-credentials.sh to avoid creating an unnecessary file when only standard error is checked. Signed-off-by: Andrei Rybak <[email protected]> Reviewed-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 73876f4 commit ed5288c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t0300-credentials.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ test_expect_success 'credential config with partial URLs' '
808808
809809
git -c credential.$partial.helper=yep \
810810
-c credential.with%0anewline.username=uh-oh \
811-
credential fill <stdin >stdout 2>stderr &&
811+
credential fill <stdin 2>stderr &&
812812
test_i18ngrep "skipping credential lookup for key" stderr
813813
'
814814

0 commit comments

Comments
 (0)