Add a regression test for 'git remote add <existing> <same-url>'
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 23 Dec 2014 13:25:09 +0000 (14:25 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Dec 2014 20:42:37 +0000 (12:42 -0800)
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5505-remote.sh
index ac79dd915da4a520e90fca6a11a239aba6e688d7..17c6330f988ecc98735307fbfd8bded5283feb61 100755 (executable)
@@ -1113,4 +1113,9 @@ test_extra_arg set-url origin newurl oldurl
 # prune takes any number of args
 # update takes any number of args
 
+test_expect_success 'add remote matching the "insteadOf" URL' '
+       git config url.xyz@example.com.insteadOf backup &&
+       git remote add backup xyz@example.com
+'
+
 test_done