remote-fd/ext: finishing touches after code review
When compiling with pthread support, transport-helper.c needs to include necessary header files. Also fix a few error messages in remote-ext and remote-fd programs, and a potential buffer underrun in remote-fd. In the documentation, clarify how %G and %V are used; the old description looked as if they take repository/vhost parameters, which was wrong. Also fix AsciiDoc markup for the page title of remote-fd/remote-ext manpages, and tweak the way how section headers are shown. Signed-off-by: Ilari Liusvaara <ilari.liusvaara@elisanet.fi> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
7f3ecebfcd
commit
7851b1e60f
@@ -142,7 +142,7 @@ static const char **parse_argv(const char *arg, const char *service)
|
||||
for (i = 0; i < arguments; i++)
|
||||
ret[i] = temparray[i];
|
||||
ret[arguments] = NULL;
|
||||
return (const char **)ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void send_git_request(int stdin_fd, const char *serv, const char *repo,
|
||||
@@ -239,10 +239,8 @@ static int command_loop(const char *child)
|
||||
|
||||
int cmd_remote_ext(int argc, const char **argv, const char *prefix)
|
||||
{
|
||||
if (argc < 3) {
|
||||
fprintf(stderr, "Error: URL missing");
|
||||
exit(1);
|
||||
}
|
||||
if (argc != 3)
|
||||
die("Expected two arguments");
|
||||
|
||||
return command_loop(argv[2]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user