diff options
| author | patrick-scho | 2025-11-30 23:42:45 +0100 |
|---|---|---|
| committer | patrick-scho | 2025-11-30 23:42:45 +0100 |
| commit | 809fe136178cfca70ae9ac43a0bcc5e6c38c8d01 (patch) | |
| tree | bbcc76466f13eb9fd7216af473e8b8089d315174 | |
| parent | 207e44cf8eb9e2f820fa88c3c40548de482b952c (diff) | |
| download | ps-cgit-809fe136178cfca70ae9ac43a0bcc5e6c38c8d01.tar.gz ps-cgit-809fe136178cfca70ae9ac43a0bcc5e6c38c8d01.zip | |
change default branch to main
| -rw-r--r-- | ui-repolist.c | 2 |
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; |
