Skip to content

Commit b8f354f

Browse files
sahildua2305gitster
authored andcommitted
branch test: fix invalid config key access
Fixes the test by changing "branch.s/s/dummy" to "branch.s/s.dummy" which is the right way of accessing config key "branch.s/s.dummy". Purpose of this test is to confirm that this key doesn't exist after the branch "s/s" has been renamed to "s". Earlier it was trying to access invalid config key and hence was getting an error. However, this wasn't caught because we were expecting the command to fail for other reason as mentioned above. Signed-off-by: Sahil Dua <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 840ed14 commit b8f354f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t3200-branch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ test_expect_success 'git branch -m s/s s should work when s/t is deleted' '
307307

308308
test_expect_success 'config information was renamed, too' '
309309
test $(git config branch.s.dummy) = Hello &&
310-
test_must_fail git config branch.s/s/dummy
310+
test_must_fail git config branch.s/s.dummy
311311
'
312312

313313
test_expect_success 'deleting a symref' '

0 commit comments

Comments
 (0)