Merge branch 'sb/diff-color-move' into next
[gitweb.git] / t / t5532-fetch-proxy.sh
index 51c9669398a01bab0b59174ec6ec1be92c3f21fe..9c2798603b4d7b4a3db135febedc71e8cea23635 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