Use promisor_remote_get_direct() and has_promisor_remote()
[gitweb.git] / blame.c
diff --git a/blame.c b/blame.c
index 326231476e2dc66d67e63c769b565ff8e0cc34d5..145eaf2faf9cf56977da61572c93783ea702b0f9 100644 (file)
--- a/blame.c
+++ b/blame.c
@@ -1562,7 +1562,8 @@ static void pass_blame(struct blame_scoreboard *sb, struct blame_origin *origin,
        }
        for (i = 0; i < num_sg; i++) {
                if (sg_origin[i]) {
-                       drop_origin_blob(sg_origin[i]);
+                       if (!sg_origin[i]->suspects)
+                               drop_origin_blob(sg_origin[i]);
                        blame_origin_decref(sg_origin[i]);
                }
        }