Default branch not detected when computing idle time on index page

1 reply

Default branch not detected when computing idle time on index page

From: Arun Isaac
To: list
Hi,

I have a repo with "main" as its default branch (as pointed to by
HEAD). The idle time for this repo is not listed correctly on the index
page. I believe this is because ret->defbranch is not set in
the function cgit_add_repo in shared.c.

This problem with correctly detecting the default branch is specific to
the index page only. On the repo pages, the default branch is detected
correctly via the function guess_defbranch in cgit.c.

Regards,
Arun
1 reply

Default branch not detected when computing idle time on index page

From: Arun Isaac
To: list
Hi,

I have a repo with "main" as its default branch (as pointed to by
HEAD). The idle time for this repo is not listed correctly on the index
page. I believe this is because ret->defbranch is not set in the
function cgit_add_repo in shared.c.

This problem with correctly detecting the default branch is specific to
the index page only. On the repo pages, the default branch is detected
correctly via the function guess_defbranch in cgit.c.

Regards,
Arun