From: mailings at hupie.com (Ferry Huberts)
Subject: [RESEND] [PATCH v1 1/1] ui-repolist: do not use agefile if it's date could not be parsed
Date: Tue, 9 Oct 2012 13:09:58 +0200 [thread overview]
Message-ID: <1349780998-6791-1-git-send-email-mailings@hupie.com> (raw)
From: Ferry Huberts <ferry.huberts at pelagic.nl>
Signed-off-by: Ferry Huberts <ferry.huberts at pelagic.nl>
---
ui-repolist.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ui-repolist.c b/ui-repolist.c
index 46cbacf..7e7f1fb 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -43,8 +43,10 @@ static int get_repo_modtime(const struct cgit_repo *repo, time_t *mtime)
path = fmt("%s/%s", repo->path, ctx.cfg.agefile);
if (stat(path, &s) == 0) {
*mtime = read_agefile(path);
- r->mtime = *mtime;
- return 1;
+ if (*mtime) {
+ r->mtime = *mtime;
+ return 1;
+ }
}
path = fmt("%s/refs/heads/%s", repo->path, repo->defbranch ?
--
1.7.11.4
next reply other threads:[~2012-10-09 11:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-09 11:09 mailings [this message]
2012-10-09 11:15 ` Jason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1349780998-6791-1-git-send-email-mailings@hupie.com \
--to=cgit@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).