diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh index 9d707d2a40..002433bc27 100755 --- a/t/t3200-branch.sh +++ b/t/t3200-branch.sh @@ -559,6 +559,7 @@ test_expect_success 'use --set-upstream-to modify HEAD' ' test_expect_success 'use --set-upstream-to modify a particular branch' ' git branch my13 && git branch --set-upstream-to master my13 && + test_when_finished "git branch --unset-upstream my13" && test "$(git config branch.my13.remote)" = "." && test "$(git config branch.my13.merge)" = "refs/heads/master" '