summaryrefslogtreecommitdiff
path: root/src/push.c
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-04-15 11:57:24 -0700
committerBen Straub <bs@github.com>2013-04-15 11:57:24 -0700
commit2ebc3c66c292539786b6ec1538f740c5e444fe16 (patch)
treed0f61d37cd90cc5bf2af55293bdf33f1df247fdb /src/push.c
parent4291ad078128003ad6d4ac6fb58244f3343ad87a (diff)
downloadlibgit2-2ebc3c66c292539786b6ec1538f740c5e444fe16.tar.gz
Redeploy git_revparse_single.
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;