about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2022-12-12 13:39:08 -0600
committerStarfall <us@starfall.systems>2022-12-12 13:39:08 -0600
commitc78628380d51770e722292e1fae363a831864d2c (patch)
tree676889cbb7cde83de2c7c6339e2d1a6297e52de8
parentfad097a08e55c9eec0fa86efec72de4426674ca2 (diff)
Change hardcoded default branch to 'main' HEAD 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 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;