mk_test testrepo heads/master &&
git checkout -b local master &&
+ test_when_finished "git checkout master; git branch -D local" &&
git push testrepo HEAD &&
check_push_result testrepo $the_commit heads/local
'
mk_test testrepo heads/master &&
git checkout master &&
- git branch -D local &&
git checkout -b local &&
+ test_when_finished "git checkout master; git branch -D local" &&
git push testrepo master local &&
check_push_result testrepo $the_commit heads/master &&
check_push_result testrepo $the_commit heads/local &&
mk_test testrepo heads/local &&
git checkout master &&
git branch -f local $the_commit &&
+ test_when_finished "git branch -D local" &&
(
cd testrepo &&
git checkout local &&