receive-pack: turn on connectivity progress
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>
Jeff King committed
Jul 15, 2016 at 06:36 UTC
6b4cd2f82791b0c9726616832382e0af8d895d99
1 file changed
+1
builtin/receive-pack.c
+1
@@ -1342,6 +1342,7 @@ static void execute_commands(struct command *commands,
1342
data.cmds = commands;
1343
data.si = si;
1344
opt.err_fd = err_fd;
1345
+ opt.progress = err_fd && !quiet;
1346
if (check_connected(iterate_receive_command_list, &data, &opt))
1347
set_connectivity_errors(commands, si);
1348