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 <rybak.a.v@gmail.com> Reviewed-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Andrei Rybak committed Apr 17, 2023 at 21:10 UTC ed5288cff22b280f83987ab521fbe451f603213c
1 file changed +1 -1
t/t0300-credentials.sh
+1 -1
@@ -808,7 +808,7 @@ test_expect_success 'credential config with partial URLs' '
808
809 git -c credential.$partial.helper=yep \
810 -c credential.with%0anewline.username=uh-oh \
811 - credential fill <stdin >stdout 2>stderr &&
811 + credential fill <stdin 2>stderr &&
812 test_i18ngrep "skipping credential lookup for key" stderr
813 '
814