From c78628380d51770e722292e1fae363a831864d2c Mon Sep 17 00:00:00 2001 From: Starfall Date: Mon, 12 Dec 2022 13:39:08 -0600 Subject: Change hardcoded default branch to 'main' --- ui-repolist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-repolist.c b/ui-repolist.c index 97b11c5..cde9cd0 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; -- cgit