abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorpatrick-scho2025-11-30 23:42:45 +0100
committerpatrick-scho2025-11-30 23:42:45 +0100
commit809fe136178cfca70ae9ac43a0bcc5e6c38c8d01 (patch)
treebbcc76466f13eb9fd7216af473e8b8089d315174
parent207e44cf8eb9e2f820fa88c3c40548de482b952c (diff)
downloadps-cgit-809fe136178cfca70ae9ac43a0bcc5e6c38c8d01.tar.gz
ps-cgit-809fe136178cfca70ae9ac43a0bcc5e6c38c8d01.zip
change default branch to main
-rw-r--r--ui-repolist.c2
1 files changed, 1 insertions, 1 deletions
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;