diff options
-rw-r--r-- | builtin/rebase.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/rebase.c b/builtin/rebase.c index d8e4e0e3a9..0ee06aa363 100644 --- a/builtin/rebase.c +++ b/builtin/rebase.c @@ -689,7 +689,7 @@ static int can_fast_forward(struct commit *onto, struct object_id *head_oid, merge_bases = get_merge_bases(onto, head); if (merge_bases && !merge_bases->next) { oidcpy(merge_base, &merge_bases->item->object.oid); - res = !oidcmp(merge_base, &onto->object.oid); + res = oideq(merge_base, &onto->object.oid); } else { oidcpy(merge_base, &null_oid); res = 0; |