Add a regression test for 'git remote add <existing> <same-url>'

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Dec 23, 2014 at 14:25 UTC b90c95d90ed9e96a0c1515c00fa8c0f92a0cb130
1 file changed +5
t/t5505-remote.sh
+5
@@ -1113,4 +1113,9 @@ test_extra_arg set-url origin newurl oldurl
1113 # prune takes any number of args
1114 # update takes any number of args
1115
1116 +test_expect_success 'add remote matching the "insteadOf" URL' '
1117 + git config url.xyz@example.com.insteadOf backup &&
1118 + git remote add backup xyz@example.com
1119 +'
1120 +
1121 test_done