[PATCH] use main as fallback branch instead of master
Derek Stevens
nilix at nilfm.cc
Sat Jan 8 23:56:37 UTC 2022
Signed-off-by: Derek Stevens <nilix at nilfm.cc>
---
ui-repolist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui-repolist.c b/ui-repolist.c
index 529a203..c162290 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -53,7 +53,7 @@ static int get_repo_modtime(const struct cgit_repo *repo, time_t *mtime)
strbuf_reset(&path);
strbuf_addf(&path, "%s/refs/heads/%s", repo->path,
- repo->defbranch ? repo->defbranch : "master");
+ repo->defbranch ? repo->defbranch : "main");
if (stat(path.buf, &s) == 0) {
*mtime = s.st_mtime;
r->mtime = *mtime;
--
2.34.1
More information about the CGit
mailing list