Commit Diff


commit - e363f37338a22278024be1d227fba6208c0e1976
commit + ec7e15af96ef58f2abc62564fc58b38401903ab1
blob - d37eb5a0e5cefff82a8f7ed72c8d4a06d4513a8e
blob + 54c1e086ebd0bae83a20d92bc4836066049b9266
--- libexec/got-read-pack/got-read-pack.c
+++ libexec/got-read-pack/got-read-pack.c
@@ -1709,6 +1709,11 @@ repaint_parent_commits(struct got_object_id *commit_id
 		struct got_object_qid *pid, *qid;
 		int idx;
 
+		if (sigint_received) {
+			err = got_error(GOT_ERR_CANCELLED);
+			goto done;
+		}
+
 		parents = got_object_commit_get_parent_ids(commit);
 		if (parents) {
 			STAILQ_FOREACH(pid, parents, entry) {