X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/5d947ba3f06ec2c7200aab8c22170e7f2bf55a7c..1dd53e3a2ffec730ec27ebe15b3d63e0b417a544:/cgit.c?ds=sidebyside diff --git a/cgit.c b/cgit.c index 972a67e..a3702c2 100644 --- a/cgit.c +++ b/cgit.c @@ -478,7 +478,7 @@ static char *guess_defbranch(void) const char *ref, *refname; struct object_id oid; - ref = resolve_ref_unsafe("HEAD", 0, oid.hash, NULL); + ref = resolve_ref_unsafe("HEAD", 0, &oid, NULL); if (!ref || !skip_prefix(ref, "refs/heads/", &refname)) return "master"; return xstrdup(refname);