summaryrefslogtreecommitdiff
path: root/builtin/remote.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2015-11-10 02:22:25 (GMT)
committerJeff King <peff@peff.net>2015-11-20 13:02:05 (GMT)
commit6f3d57b6e43d6c6f13c94371f16b79fcdece25bc (patch)
treee6422f0f7e6ec1c99431693a5cb57aba27a1c1d6 /builtin/remote.c
parent27912a03fd6dc2c8111e328d9ac1a28994fe36d2 (diff)
downloadgit-6f3d57b6e43d6c6f13c94371f16b79fcdece25bc.zip
git-6f3d57b6e43d6c6f13c94371f16b79fcdece25bc.tar.gz
git-6f3d57b6e43d6c6f13c94371f16b79fcdece25bc.tar.bz2
ref_newer: convert to use struct object_id
Convert ref_newer and its caller to use struct object_id instead of unsigned char *. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'builtin/remote.c')
-rw-r--r--builtin/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/remote.c b/builtin/remote.c
index 68dec16..6694cf2 100644
--- a/builtin/remote.c
+++ b/builtin/remote.c
@@ -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;