Skip to content

Commit 93a6b3f

Browse files
Kaartic Sivaraamgitster
authored andcommitted
t3200: cleanup cruft of a test
Avoiding the clean up step of tests may help in some cases but in other cases they cause the other unrelated tests to fail for unobvious reasons. It's better to cleanup a few things to keep other tests from failing as a result of it. So, cleanup a cruft left behind by an old test in order for the changes that are to be introduced to be independent of it. Signed-off-by: Kaartic Sivaraam <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b3622a4 commit 93a6b3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/t3200-branch.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ test_expect_success 'use --set-upstream-to modify HEAD' '
559559
test_expect_success 'use --set-upstream-to modify a particular branch' '
560560
git branch my13 &&
561561
git branch --set-upstream-to master my13 &&
562+
test_when_finished "git branch --unset-upstream my13" &&
562563
test "$(git config branch.my13.remote)" = "." &&
563564
test "$(git config branch.my13.merge)" = "refs/heads/master"
564565
'

0 commit comments

Comments
 (0)