* [RESEND] [PATCH v1 1/1] ui-repolist: do not use agefile if it's date could not be parsed
@ 2012-10-09 11:09 mailings
2012-10-09 11:15 ` Jason
0 siblings, 1 reply; 2+ messages in thread
From: mailings @ 2012-10-09 11:09 UTC (permalink / 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [RESEND] [PATCH v1 1/1] ui-repolist: do not use agefile if it's date could not be parsed
2012-10-09 11:09 [RESEND] [PATCH v1 1/1] ui-repolist: do not use agefile if it's date could not be parsed mailings
@ 2012-10-09 11:15 ` Jason
0 siblings, 0 replies; 2+ messages in thread
From: Jason @ 2012-10-09 11:15 UTC (permalink / raw)
Looks good, thanks for the fix.
http://git.zx2c4.com/cgit/commit/?id=e52a5226b83dc5232adb7d9076cae3ad4b123df4
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-09 11:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-09 11:09 [RESEND] [PATCH v1 1/1] ui-repolist: do not use agefile if it's date could not be parsed mailings
2012-10-09 11:15 ` Jason
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).