From 17838ec6304198811df97402f11c185f8f0e10bd Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 19 Dec 2014 00:28:34 -0700 Subject: git: update to v2.2.1 Update to git version v2.2.1, including API changes. Signed-off-by: Christian Hesse --- cgit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cgit.c') diff --git a/cgit.c b/cgit.c index db60107..796cb7f 100644 --- a/cgit.c +++ b/cgit.c @@ -457,7 +457,7 @@ static char *guess_defbranch(void) const char *ref; unsigned char sha1[20]; - ref = resolve_ref_unsafe("HEAD", sha1, 0, NULL); + ref = resolve_ref_unsafe("HEAD", 0, sha1, NULL); if (!ref || !starts_with(ref, "refs/heads/")) return "master"; return xstrdup(ref + 11); -- cgit v1.2.3-24-g4f1b