aboutsummaryrefslogtreecommitdiffstats
path: root/t/t5532-fetch-proxy.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-30 14:57:33 -0700
committerJunio C Hamano <gitster@pobox.com>2017-07-30 14:57:33 -0700
commitd78f06a1b70f3743899b5494f55a456596e51a63 (patch)
tree5e36906085bb4fc68dbe0ca9bde047f260f031d6 /t/t5532-fetch-proxy.sh
parentGit 2.10.3 (diff)
parentGit 2.9.5 (diff)
downloadgit-d78f06a1b70f3743899b5494f55a456596e51a63.tar.gz
git-d78f06a1b70f3743899b5494f55a456596e51a63.zip
Merge tag 'v2.9.5' into maint-2.10
Git 2.9.5
Diffstat (limited to 't/t5532-fetch-proxy.sh')
-rwxr-xr-xt/t5532-fetch-proxy.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t5532-fetch-proxy.sh b/t/t5532-fetch-proxy.sh
index 51c9669398..9c2798603b 100755
--- a/t/t5532-fetch-proxy.sh
+++ b/t/t5532-fetch-proxy.sh
@@ -43,4 +43,9 @@ test_expect_success 'fetch through proxy works' '
test_cmp expect actual
'
+test_expect_success 'funny hostnames are rejected before running proxy' '
+ test_must_fail git fetch git://-remote/repo.git 2>stderr &&
+ ! grep "proxying for" stderr
+'
+
test_done