about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJason A. Donenfeld2018-11-22 01:49:55 +0100
committerJason A. Donenfeld2018-11-25 06:01:34 +0100
commit441dac1d747dab43e3559ee68f18a273512064cd (patch)
tree180bc56f1095b26b3ad423789e69a76d42a8d996
parentauth-filter: pass url with query string attached (diff)
downloadcgit-441dac1d747dab43e3559ee68f18a273512064cd.tar.gz
cgit-441dac1d747dab43e3559ee68f18a273512064cd.zip
ui-blame: set repo for sb
Otherwise recent git complains and crashes with: "BUG: blame.c:1787:
repo is NULL".

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--ui-blame.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui-blame.c b/ui-blame.c index 6dc555f..c52cb9b 100644 --- a/ui-blame.c +++ b/ui-blame.c
@@ -131,6 +131,7 @@ static void print_object(const struct object_id *oid, const char *path,
131 setup_revisions(rev_argv.argc, rev_argv.argv, &revs, NULL); 131 setup_revisions(rev_argv.argc, rev_argv.argv, &revs, NULL);
132 init_scoreboard(&sb); 132 init_scoreboard(&sb);
133 sb.revs = &revs; 133 sb.revs = &revs;
134 sb.repo = the_repository;
134 setup_scoreboard(&sb, path, &o); 135 setup_scoreboard(&sb, path, &o);
135 o->suspects = blame_entry_prepend(NULL, 0, sb.num_lines, o); 136 o->suspects = blame_entry_prepend(NULL, 0, sb.num_lines, o);
136 prio_queue_put(&sb.commits, o->commit); 137 prio_queue_put(&sb.commits, o->commit);