Thread (108 messages) 108 messages, 8 authors, 2017-10-25

Re: [PATCH 3/8] daemon: recognize hidden request arguments

flat view

From: Jonathan Tan <hidden>
Date: 2017-09-21 00:31:30

On Wed, 20 Sep 2017 17:24:43 -0700
Jonathan Tan [off-list ref] wrote:
On Wed, 13 Sep 2017 14:54:43 -0700
Brandon Williams [off-list ref] wrote:
quoted
A normal request to git-daemon is structured as
"command path/to/repo\0host=..\0" and due to a bug in an old version of
git-daemon 73bb33a94 (daemon: Strictly parse the "extra arg" part of the
command, 2009-06-04) we aren't able to place any extra args (separated
by NULs) besides the host.

In order to get around this limitation teach git-daemon to recognize
additional request arguments hidden behind a second NUL byte.  Requests
can then be structured like:
"command path/to/repo\0host=..\0\0version=1\0key=value\0".  git-daemon
can then parse out the extra arguments and set 'GIT_PROTOCOL'
accordingly.
A test in this patch (if possible) would be nice, but it is probably
clearer to test this when one of the commands (e.g. upload-pack) is
done. Could a test be added to the next patch to verify (using
GIT_TRACE_PACKET, maybe) that the expected strings are sent? Then
mention in this commit message that this will be tested in the next
patch too.
Ah, I see that it is tested in 6/8. You can ignore this comment.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help