compare_refs clone HEAD server HEAD
'
-test_expect_failure 'fetch new branch' '
+test_expect_success 'fetch new branch' '
(cd public &&
git checkout -b new &&
echo content >>file &&
compare_refs public HEAD localclone FETCH_HEAD
'
-test_expect_failure 'fetch multiple branches' '
+test_expect_success 'fetch multiple branches' '
(cd localclone &&
git fetch
) &&
compare_refs server new localclone refs/remotes/origin/new
'
-test_expect_failure 'push when remote has extra refs' '
+test_expect_success 'push when remote has extra refs' '
(cd clone &&
echo content >>file &&
git commit -a -m six &&
compare_refs clone master server master
'
-test_expect_failure 'push new branch by name' '
+test_expect_success 'push new branch by name' '
(cd clone &&
git checkout -b new-name &&
echo content >>file &&