Skip to content

Commit 58ebccb

Browse files
peffgitster
authored andcommitted
t1309: use short branch name in includeIf.onbranch test
Commit 85fe0e8 (config: work around bug with includeif:onbranch and early config, 2019-07-31) tests that our early config-reader does not access the file mentioned by includeIf.onbranch:refs/heads/master.path. But it would never do so even if the feature were implemented, since the onbranch matching code uses the short refname "master". The test still serves its purpose, since the bug fixed by 85fe0e8 is actually that we hit a BUG() before even deciding whether to match the ref. But let's use the correct name to avoid confusion (and which we'll eventually want to trigger once we do the "real" fix described in that commit). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 7c20df8 commit 58ebccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t1309-early-config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ test_expect_failure 'ignore .git/ with invalid config' '
9191

9292
test_expect_success 'early config and onbranch' '
9393
echo "[broken" >broken &&
94-
test_with_config "[includeif \"onbranch:refs/heads/master\"]path=../broken"
94+
test_with_config "[includeif \"onbranch:master\"]path=../broken"
9595
'
9696

9797
test_done

0 commit comments

Comments
 (0)