t/README: link to metacpan.org, not search.cpan.org
[gitweb.git] / t / t5505-remote.sh
index 2c03f44c85991ce57f59b671f5d3e3ce1025a1bf..3ea27107c2ddee8217d5d91c4b13d85d81b44a5e 100755 (executable)
@@ -153,6 +153,25 @@ test_expect_success 'remove errors out early when deleting non-existent branch'
        )
 '
 
+test_expect_success 'remove remote with a branch without configured merge' '
+       test_when_finished "(
+               git -C test checkout master;
+               git -C test branch -D two;
+               git -C test config --remove-section remote.two;
+               git -C test config --remove-section branch.second;
+               true
+       )" &&
+       (
+               cd test &&
+               git remote add two ../two &&
+               git fetch two &&
+               git checkout -b second two/master^0 &&
+               git config branch.second.remote two &&
+               git checkout master &&
+               git remote rm two
+       )
+'
+
 test_expect_success 'rename errors out early when deleting non-existent branch' '
        (
                cd test &&
@@ -764,7 +783,7 @@ test_expect_success 'rename a remote with name prefix of other remote' '
        )
 '
 
-test_expect_failure 'rename succeeds with existing remote.<target>.prune' '
+test_expect_success 'rename succeeds with existing remote.<target>.prune' '
        git clone one four.four &&
        test_when_finished git config --global --unset remote.upstream.prune &&
        git config --global remote.upstream.prune true &&