summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2014-12-23 14:25:09 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-12-23 12:42:37 -0800
commitb90c95d90ed9e96a0c1515c00fa8c0f92a0cb130 (patch)
treef601a3fe793006dad7e48652296953a943d16e0f
parentgit remote: allow adding remotes agreeing with url.<...>.insteadOf (diff)
downloadtgif-b90c95d90ed9e96a0c1515c00fa8c0f92a0cb130.tar.xz
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>
-rwxr-xr-xt/t5505-remote.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh
index ac79dd915d..17c6330f98 100755
--- a/t/t5505-remote.sh
+++ b/t/t5505-remote.sh
@@ -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