Skip to content

Commit 6b4cd2f

Browse files
peffgitster
authored andcommitted
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>
1 parent d415092 commit 6b4cd2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/receive-pack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,7 @@ static void execute_commands(struct command *commands,
13421342
data.cmds = commands;
13431343
data.si = si;
13441344
opt.err_fd = err_fd;
1345+
opt.progress = err_fd && !quiet;
13451346
if (check_connected(iterate_receive_command_list, &data, &opt))
13461347
set_connectivity_errors(commands, si);
13471348

0 commit comments

Comments
 (0)