diff options
author | Ben Straub <bs@github.com> | 2013-04-15 22:57:24 +0400 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2013-04-15 22:57:24 +0400 |
commit | 2ebc3c66c292539786b6ec1538f740c5e444fe16 (patch) | |
tree | d0f61d37cd90cc5bf2af55293bdf33f1df247fdb /src/push.c | |
parent | 4291ad078128003ad6d4ac6fb58244f3343ad87a (diff) |
Redeploy git_revparse_single.
Diffstat (limited to 'src/push.c')
-rw-r--r-- | src/push.c | 5 |
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; |