Commit dc3fe1bf10950c200037f0198f2445ea176f8cc3

Stefan Sperling 2022-05-10T11:24:12

fix load_object_ids() such that packing tags works if zero commits are packed reported by jrick and op

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/pack_create.c b/lib/pack_create.c
index c35a034..65a0185 100644
--- a/lib/pack_create.c
+++ b/lib/pack_create.c
@@ -1456,7 +1456,7 @@ load_object_ids(int *ncolored, int *nfound, int *ntrees,
 
 	err = findtwixt(&ids, &nobj, ncolored, ours, nours, theirs, ntheirs,
 	    repo, progress_cb, progress_arg, rl, cancel_cb, cancel_arg);
-	if (err || nobj == 0)
+	if (err)
 		goto done;
 
 	for (i = 0; i < ntheirs; i++) {