Commit 021b0c6fb25d296a1463498da56435aee399dfe9

Stefan Sperling 2020-03-18T16:13:46

don't forget to send a final progress notification from got-index-pack

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/libexec/got-index-pack/got-index-pack.c b/libexec/got-index-pack/got-index-pack.c
index 1ac94bd..eaf56a1 100644
--- a/libexec/got-index-pack/got-index-pack.c
+++ b/libexec/got-index-pack/got-index-pack.c
@@ -788,6 +788,11 @@ index_pack(struct got_pack *pack, int idxfd, FILE *tmpfile,
 		goto done;
 	}
 
+	err = got_privsep_send_index_pack_progress(ibuf, nobj, nobj,
+	    nloose, nresolved);
+	if (err)
+		goto done;
+
 	make_packidx(&packidx, nobj, objects);
 
 	SHA1Init(&ctx);