diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2014-12-23 14:25:09 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-12-23 12:42:37 -0800 |
commit | b90c95d90ed9e96a0c1515c00fa8c0f92a0cb130 (patch) | |
tree | f601a3fe793006dad7e48652296953a943d16e0f /t | |
parent | git remote: allow adding remotes agreeing with url.<...>.insteadOf (diff) | |
download | tgif-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>
Diffstat (limited to 't')
-rwxr-xr-x | t/t5505-remote.sh | 5 |
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 |