Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
connect: reject dashed arguments for proxy commands
[gitweb.git]
/
t
/
t5532-fetch-proxy.sh
diff --git
a/t/t5532-fetch-proxy.sh
b/t/t5532-fetch-proxy.sh
index 5531bd1af42dac808d64d75a6fc3e848ef968a34..d3b2651b6114e6db50464d25d2b6dc6fa700c903 100755
(executable)
--- a/
t/t5532-fetch-proxy.sh
+++ b/
t/t5532-fetch-proxy.sh
@@
-40,4
+40,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