summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2014-12-23 14:25:09 +0100
committerJunio C Hamano <gitster@pobox.com>2014-12-23 12:42:37 -0800
commitb90c95d90ed9e96a0c1515c00fa8c0f92a0cb130 (patch)
treef601a3fe793006dad7e48652296953a943d16e0f
parentfb86e32dcc9ed07ee2f1df6aafbf34d469007b1f (diff)
downloadgit-js/remote-add-with-insteadof.tar.gz
Add a regression test for 'git remote add <existing> <same-url>'js/remote-add-with-insteadof
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