From 1ad28150ec546b2cca01498420a070c49e6e2880 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Fri, 12 Jul 2013 11:06:49 -0700 Subject: [PATCH] jobd.pl: avoid uninitialized warning when no lastgc/lastrefresh --- jobd/jobd.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobd/jobd.pl b/jobd/jobd.pl index 3acde5c..fa7a9c8 100755 --- a/jobd/jobd.pl +++ b/jobd/jobd.pl @@ -103,7 +103,7 @@ sub is_operation_uptodate { my ($project, $which, $threshold) = @_; my $path = get_project_path($project); my $timestamp = `GIT_DIR="$path" $Girocco::Config::git_bin config "gitweb.$which"`; - my $unix_ts = parse_date($timestamp); + my $unix_ts = parse_date($timestamp) || 0; (time - $unix_ts) <= $threshold ? $timestamp : undef; } -- 2.11.4.GIT