Commit Diff


commit - 317dd7445e47bf1d9f9e99fbc570ed31d8ffe0a7
commit + 6605806560809260b88f55d90db98463d6771fa2
blob - 1c31e5e2bfd158b739cf6350764247b87b5ba267
blob + 1412c780886367fa09452ecbd5c3d48a59159abb
--- lib/pack_create_io.c
+++ lib/pack_create_io.c
@@ -343,7 +343,7 @@ got_pack_paint_commits(int *ncolored, struct got_objec
 				err = got_pack_queue_commit_id(ids, &pid->id,
 				    color, repo);
 				if (err)
-					break;
+					goto done;
 				nqueued++;
 				if (color == COLOR_SKIP)
 					nskip++;
blob - 935b18853fe57df4e01b6fd72a54af549b3a43e5
blob + 25ea25814658bd73f9f241cb84ea7dedeed2da82
--- lib/pack_create_privsep.c
+++ lib/pack_create_privsep.c
@@ -598,7 +598,7 @@ got_pack_paint_commits(int *ncolored, struct got_objec
 				err = got_pack_queue_commit_id(ids, &pid->id,
 				    color, repo);
 				if (err)
-					break;
+					goto done;
 				nqueued++;
 				if (color == COLOR_SKIP)
 					nskip++;