Imported Upstream version 2.11.3
[platform/upstream/git.git] / t / t5532-fetch-proxy.sh
index 51c9669..9c27986 100755 (executable)
@@ -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