| -rw-r--r-- | ui-repolist.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index f21d28d..25c36ce 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -45,8 +45,7 @@ static int get_repo_modtime(const struct cgit_repo *repo, time_t *mtime) return 1; } - path = fmt("%s/refs/heads/%s", repo->path, repo->defbranch ? - repo->defbranch : "master"); + path = fmt("%s/refs/heads/%s", repo->path, repo->defbranch); if (stat(path, &s) == 0) { *mtime = s.st_mtime; r->mtime = *mtime; |