Skip to content

Commit 17ae7f7

Browse files
rybakgitster
authored andcommitted
t1302: don't create unused file
Test 'gitdir selection on unsupported repo' in t1302-repo-version.sh writes output of a "git config" invocation to file "actual". However, the test doesn't have any assertions for the file. The file was used by this test until commit b9605bc (config: only read .git/config from configured repos, 2016-09-12), before which "git config" was expected to print the bogus value of "core.repositoryformatversion" to standard output. Don't redirect output of "git config" to file "actual" in test 'gitdir selection on unsupported repo'. Signed-off-by: Andrei Rybak <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f4b98e1 commit 17ae7f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t1302-repo-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ test_expect_success 'gitdir selection on normal repos' '
3737

3838
test_expect_success 'gitdir selection on unsupported repo' '
3939
# Make sure it would stop at test2, not trash
40-
test_expect_code 1 git -C test2 config core.repositoryformatversion >actual
40+
test_expect_code 1 git -C test2 config core.repositoryformatversion
4141
'
4242

4343
test_expect_success 'gitdir not required mode' '

0 commit comments

Comments
 (0)