ref: 2dac6ab001dfdc4a99aeb5f44f8d675954a0e664
parent: 3c2c52864ac6c2f648db004771dd01949974e9eb
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Jan 18 17:39:44 EST 2020
add chatty logging to sending packs
--- a/send.c
+++ b/send.c
@@ -367,6 +367,8 @@
if(!send)
print("nothing to send\n");
if(send){
+ if(chattygit)
+ fprint(2, "sending pack...\n");
if(writepack(fd, upd, nupd) == -1)
return -1;
@@ -373,6 +375,8 @@
/* We asked for a status report, may as well use it. */
while((n = readpkt(fd, buf, sizeof(buf))) > 0){
buf[n] = 0;
+ if(chattygit)
+ fprint(2, "done sending pack, status %s\n", buf);
nsp = getfields(buf, sp, nelem(sp), 1, " \t\n\r");
if(nsp < 2)
continue;