Merge branch 'cb/t3404-shellquote'
[gitweb.git] / builtin / remote.c
index 68dec162aaa0ff536c30a7ec8c2e3f951c7e86a5..6694cf20efdc01fb59d0b6afa41f7b1557c9b2d5 100644 (file)
@@ -417,7 +417,7 @@ static int get_push_ref_states(const struct ref *remote_refs,
                else if (is_null_oid(&ref->old_oid))
                        info->status = PUSH_STATUS_CREATE;
                else if (has_object_file(&ref->old_oid) &&
-                        ref_newer(ref->new_oid.hash, ref->old_oid.hash))
+                        ref_newer(&ref->new_oid, &ref->old_oid))
                        info->status = PUSH_STATUS_FASTFORWARD;
                else
                        info->status = PUSH_STATUS_OUTOFDATE;