X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/87369611a8cc253c53408375960918eebf50d1cc..10628b0e52f860f8c95c476f61a98a31b79ce776:/cgit.c diff --git a/cgit.c b/cgit.c index 11edd81..d615315 100644 --- a/cgit.c +++ b/cgit.c @@ -450,7 +450,7 @@ static char *guess_defbranch(const char *repo_path) const char *ref; unsigned char sha1[20]; - ref = resolve_ref("HEAD", sha1, 0, NULL); + ref = resolve_ref_unsafe("HEAD", sha1, 0, NULL); if (!ref || prefixcmp(ref, "refs/heads/")) return "master"; return xstrdup(ref + 11);