X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/10c5680efb02b534108b174c0967d08ae3e46927..17838ec6304198811df97402f11c185f8f0e10bd:/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);