summaryrefslogtreecommitdiff
path: root/src/push.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/push.c')
-rw-r--r--src/push.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/push.c b/src/push.c
index dcd8122d1..ce7af3598 100644
--- a/src/push.c
+++ b/src/push.c
@@ -96,8 +96,9 @@ static int check_rref(char *ref)
static int check_lref(git_push *push, char *ref)
{
/* lref must be resolvable to an existing object */
- git_oid oid;
- int error = git_revparse(&oid, NULL, NULL, push->repo, ref);
+ git_object *obj;
+ int error = git_revparse_single(&obj, push->repo, ref);
+ git_object_free(obj);
if (!error)
return 0;