diff options
-rw-r--r-- | merge-base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/merge-base.c b/merge-base.c index 2ea44970d2..6aa7f56526 100644 --- a/merge-base.c +++ b/merge-base.c @@ -62,8 +62,8 @@ int main(int argc, char **argv) get_sha1(argv[2], rev2key)) { usage("merge-base <commit-id> <commit-id>"); } - rev1 = lookup_commit(rev1key); - rev2 = lookup_commit(rev2key); + rev1 = lookup_commit_reference(rev1key); + rev2 = lookup_commit_reference(rev2key); ret = common_ancestor(rev1, rev2); if (!ret) return 1; |