diff options
| author | Elis Eriksson <spelis.tech@gmail.com> | 2026-07-02 23:47:36 +0200 |
|---|---|---|
| committer | Elis Eriksson <spelis.tech@gmail.com> | 2026-07-02 23:47:36 +0200 |
| commit | e9abfd32cc5144c4e955e1f140ff5c5539586b76 (patch) | |
| tree | ee2bcaf7938e44ab073d00e42cc4ec672e9f99af /cgit.c | |
| parent | a16b9477d951ae45ce6d8efc13d2dbc30d54dbdf (diff) | |
| download | cgit-e9abfd32cc5144c4e955e1f140ff5c5539586b76.tar cgit-e9abfd32cc5144c4e955e1f140ff5c5539586b76.tar.gz cgit-e9abfd32cc5144c4e955e1f140ff5c5539586b76.tar.bz2 cgit-e9abfd32cc5144c4e955e1f140ff5c5539586b76.tar.lz cgit-e9abfd32cc5144c4e955e1f140ff5c5539586b76.tar.xz cgit-e9abfd32cc5144c4e955e1f140ff5c5539586b76.tar.zst cgit-e9abfd32cc5144c4e955e1f140ff5c5539586b76.zip | |
Diffstat (limited to 'cgit.c')
| -rw-r--r-- | cgit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |
