mirror of
https://git.zx2c4.com/cgit
synced 2024-11-22 00:18:41 +00:00
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>
This commit is contained in:
parent
898b9e19e0
commit
441dac1d74
@ -131,6 +131,7 @@ static void print_object(const struct object_id *oid, const char *path,
|
||||
setup_revisions(rev_argv.argc, rev_argv.argv, &revs, NULL);
|
||||
init_scoreboard(&sb);
|
||||
sb.revs = &revs;
|
||||
sb.repo = the_repository;
|
||||
setup_scoreboard(&sb, path, &o);
|
||||
o->suspects = blame_entry_prepend(NULL, 0, sb.num_lines, o);
|
||||
prio_queue_put(&sb.commits, o->commit);
|
||||
|
Loading…
Reference in New Issue
Block a user