Commit Diff


commit - 654306ef1b1efff7485e13c45e394c7804d1e63f
commit + 39a089ac0ae7a9974bf6174d08636de0872801f4
blob - 76db4d9276240cd3ef3023c073ede048571bdde3
blob + 54f805c2e558f982642a1400c395dc96d90e8726
--- lib/repository_admin.c
+++ lib/repository_admin.c
@@ -1133,6 +1133,11 @@ got_repo_purge_unreferenced_loose_objects(struct got_r
 	nloose = got_object_idset_num_elements(loose_ids);
 	if (nloose == 0) {
 		got_object_idset_free(loose_ids);
+		if (progress_cb) {
+			err = progress_cb(progress_arg, 0, 0, 0);
+			if (err)
+				return err;
+		}
 		return NULL;
 	}