Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-04-15 22:57:24 +0400
committerBen Straub <bs@github.com>2013-04-15 22:57:24 +0400
commit2ebc3c66c292539786b6ec1538f740c5e444fe16 (patch)
treed0f61d37cd90cc5bf2af55293bdf33f1df247fdb /src/push.c
parent4291ad078128003ad6d4ac6fb58244f3343ad87a (diff)
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;