We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db7d07f commit 5eb2ed6Copy full SHA for 5eb2ed6
line-log.c
@@ -481,7 +481,7 @@ static struct commit *check_single_commit(struct rev_info *revs)
481
if (obj->flags & UNINTERESTING)
482
continue;
483
obj = deref_tag(revs->repo, obj, NULL, 0);
484
- if (obj->type != OBJ_COMMIT)
+ if (!obj || obj->type != OBJ_COMMIT)
485
die("Non commit %s?", revs->pending.objects[i].name);
486
if (commit)
487
die("More than one commit to dig from: %s and %s?",
0 commit comments