t3200: cleanup cruft of a test
[gitweb.git] / t / t3200-branch.sh
index 9d707d2a40a457abcd85fb93d9f8195946d09d01..002433bc27edf344951c9407a10a01c2c0969d2c 100755 (executable)
@@ -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"
 '