]> git.ipfire.org Git - thirdparty/git.git/commitdiff
receive-pack: turn on connectivity progress
authorJeff King <peff@peff.net>
Fri, 15 Jul 2016 10:36:35 +0000 (06:36 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Jul 2016 19:11:11 +0000 (12:11 -0700)
When we receive a large push, the server side of the
connection may spend a lot of time (30s or more for a full
push of linux.git) walking the object graph without
producing any output. Let's give the user some indication
that we're actually working.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c

index d309109abbdb2cb3d6d3562ec1004fd5273b4c34..7db16392798e00a7a4f4d4e09031fd0815de313b 100644 (file)
@@ -1342,6 +1342,7 @@ static void execute_commands(struct command *commands,
        data.cmds = commands;
        data.si = si;
        opt.err_fd = err_fd;
+       opt.progress = err_fd && !quiet;
        if (check_connected(iterate_receive_command_list, &data, &opt))
                set_connectivity_errors(commands, si);