aboutsummaryrefslogtreecommitdiffstats
path: root/http-push.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2015-11-10 02:22:25 +0000
committerJeff King <peff@peff.net>2015-11-20 08:02:05 -0500
commit6f3d57b6e43d6c6f13c94371f16b79fcdece25bc (patch)
treee6422f0f7e6ec1c99431693a5cb57aba27a1c1d6 /http-push.c
parent27912a03fd6dc2c8111e328d9ac1a28994fe36d2 (diff)
downloadgit-6f3d57b6e43d6c6f13c94371f16b79fcdece25bc.tar.gz
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 'http-push.c')
-rw-r--r--http-push.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/http-push.c b/http-push.c
index f2db3a6243..68ce3405fe 100644
--- a/http-push.c
+++ b/http-push.c
@@ -1886,8 +1886,8 @@ int main(int argc, char **argv)
!is_null_oid(&ref->old_oid) &&
!ref->force) {
if (!has_object_file(&ref->old_oid) ||
- !ref_newer(ref->peer_ref->new_oid.hash,
- ref->old_oid.hash)) {
+ !ref_newer(&ref->peer_ref->new_oid,
+ &ref->old_oid)) {
/*
* We do not have the remote ref, or
* we know that the remote ref is not