]> git.cameronkatri.com Git - cgit.git/blobdiff - cgit.c
git: update to v2.2.1
[cgit.git] / cgit.c
diff --git a/cgit.c b/cgit.c
index db60107e7c2839fbad98a688db803cfb13602bca..796cb7fa9127ff2c9576e9567bc421fba9e498cb 100644 (file)
--- 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);