summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-02-22 13:15:01 -0800
committerJunio C Hamano <gitster@pobox.com>2016-02-22 13:15:01 -0800
commit4091558cfe00ed7b27313ff6a55b5994ce766270 (patch)
treebfa0d12b5d0eef30633139c4557d510be173bf39 /t
parent895f20de9e3ecd68c4b96cf6802a7424e9ace533 (diff)
parentd8ff76cf17c334c60cb83e7d860466086d0547fe (diff)
downloadgit-4091558cfe00ed7b27313ff6a55b5994ce766270.tar.gz
Merge branch 'js/git-remote-add-url-insteadof-test'
* js/git-remote-add-url-insteadof-test: t5505: 'remote add x y' should work when url.y.insteadOf = x
Diffstat (limited to 't')
-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 1a8e3b81c8..0dcc752076 100755
--- a/t/t5505-remote.sh
+++ b/t/t5505-remote.sh
@@ -51,6 +51,11 @@ test_expect_success setup '
git clone one test
'
+test_expect_success 'add remote whose URL agrees with url.<...>.insteadOf' '
+ test_config url.git@host.com:team/repo.git.insteadOf myremote &&
+ git remote add myremote git@host.com:team/repo.git
+'
+
test_expect_success C_LOCALE_OUTPUT 'remote information for the origin' '
(
cd test &&