summaryrefslogtreecommitdiff
path: root/cgit.c
diff options
context:
space:
mode:
authorElis Eriksson <spelis.tech@gmail.com>2026-07-02 23:47:36 +0200
committerElis Eriksson <spelis.tech@gmail.com>2026-07-02 23:47:36 +0200
commite9abfd32cc5144c4e955e1f140ff5c5539586b76 (patch)
treeee2bcaf7938e44ab073d00e42cc4ec672e9f99af /cgit.c
parenta16b9477d951ae45ce6d8efc13d2dbc30d54dbdf (diff)
downloadcgit-main.tar
cgit-main.tar.gz
cgit-main.tar.bz2
cgit-main.tar.lz
cgit-main.tar.xz
cgit-main.tar.zst
cgit-main.zip
borrow css from symlinx because its betterHEADmain
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgit.c b/cgit.c
index a9ce663..b2cdd4a 100644
--- a/cgit.c
+++ b/cgit.c
@@ -501,7 +501,7 @@ static char *guess_defbranch(void)
ref = refs_resolve_ref_unsafe(get_main_ref_store(the_repository),
"HEAD", 0, &oid, NULL);
- if (!ref || !skip_prefix(ref, "ref: refs/heads/", &refname))
+ if (!ref || !skip_prefix(ref, "refs/heads/", &refname))
return "main";
return xstrdup(refname);
}