summaryrefslogtreecommitdiff
path: root/t/t1302-repo-version.sh
diff options
context:
space:
mode:
authorAndrei Rybak <rybak.a.v@gmail.com>2023-03-18 15:46:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2023-03-20 16:11:41 (GMT)
commit17ae7f758e728ac40e326a3ab82a7727d735484a (patch)
tree7c48dd3a27be46965aaf302ff5bfde2345512921 /t/t1302-repo-version.sh
parentf4b98e17cf290883894606623e90d42747bce25e (diff)
downloadgit-17ae7f758e728ac40e326a3ab82a7727d735484a.zip
git-17ae7f758e728ac40e326a3ab82a7727d735484a.tar.gz
git-17ae7f758e728ac40e326a3ab82a7727d735484a.tar.bz2
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 b9605bc4f2 (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 <rybak.a.v@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1302-repo-version.sh')
-rwxr-xr-xt/t1302-repo-version.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1302-repo-version.sh b/t/t1302-repo-version.sh
index 70389fa..179474f 100755
--- a/t/t1302-repo-version.sh
+++ b/t/t1302-repo-version.sh
@@ -37,7 +37,7 @@ test_expect_success 'gitdir selection on normal repos' '
test_expect_success 'gitdir selection on unsupported repo' '
# Make sure it would stop at test2, not trash
- test_expect_code 1 git -C test2 config core.repositoryformatversion >actual
+ test_expect_code 1 git -C test2 config core.repositoryformatversion
'
test_expect_success 'gitdir not required mode' '