Thread (99 messages) flat view 99 messages, 7 authors, 2016-12-15

Re: [PATCH v4 2/2] transport: add protocol policy config option

From: Brandon Williams <hidden>
Date: 2016-11-07 21:02:23

On 11/07, Jeff King wrote:
quoted
+	test_expect_success "clone $desc (env var has precedence)" '
+		rm -rf tmp.git &&
+		(
+			GIT_ALLOW_PROTOCOL=none &&
+			export GIT_ALLOW_PROTOCOL &&
+			test_must_fail git -c protocol.$proto.allow=always clone --bare "$url" tmp.git
+		)
+	'
This test is a good addition in this round.

I suppose we could test also that GIT_ALLOW_PROTOCOL overrides
protocol.allow, but I'm not sure if there is a point. If git were a
black box, it's a thing I might check, but we know from the design that
this is an unlikely bug (and that the implementation is unlikely to
change in a way to cause it). So I could go either way.
I'll add in another test for that, no reason not to test it.
Squashable documentation suggestions are below.
Sounds good

-- 
Brandon Williams
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help