summaryrefslogtreecommitdiffstats
path: root/git-hooks
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-02-02 20:09:30 +0100
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-02-02 20:15:18 +0100
commitd04e44f2e3c41c036c617c23126991a41933f9c5 (patch)
tree8f157a452192bfa95f933ac013d6c5e8ac00a47f /git-hooks
parent7aecca6b353db50f47df95b230561537574f41b5 (diff)
remove %Z from time formats - it's redundant with %c
Change-Id: Idb8eb8fef7511e2bb28db9a22a43e527b5ced6b5 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'git-hooks')
-rwxr-xr-xgit-hooks/gerrit-bot8
1 files changed, 4 insertions, 4 deletions
diff --git a/git-hooks/gerrit-bot b/git-hooks/gerrit-bot
index 580675c..3a6f227 100755
--- a/git-hooks/gerrit-bot
+++ b/git-hooks/gerrit-bot
@@ -93,7 +93,7 @@ sub process_commit($$$)
$processed{$ref} = 1;
my $orig_project = $project;
$project =~ s,/$,,; # XXX Workaround QTQAINFRA-381
- $verbose and print "===== ".strftime("%c %Z", localtime(time()))." ===== processing commit ".$ref." in ".$project."\n";
+ $verbose and print "===== ".strftime("%c", localtime(time()))." ===== processing commit ".$ref." in ".$project."\n";
my $GIT_DIR = $GIT_BASEDIR."/".$project.".git";
if (!-d $GIT_DIR) {
mkpath $GIT_DIR or die "cannot create ".$GIT_DIR.": ".$!;
@@ -116,14 +116,14 @@ sub process_commit($$$)
printerr "GIT fetch from ".$project." failed";
return;
}
- $verbose and print "===== ".strftime("%c %Z", localtime(time()))." ===== updated mainlines\n";
+ $verbose and print "===== ".strftime("%c", localtime(time()))." ===== updated mainlines\n";
my $dref = $ref;
$dref =~ s,/[^/]+$,,;
if (system("git", "fetch", "-f", "origin", $ref.":".$dref)) {
printerr "GIT fetch of ".$ref." from ".$project." failed";
return;
}
- $verbose and print "===== ".strftime("%c %Z", localtime(time()))." ===== fetched change\n";
+ $verbose and print "===== ".strftime("%c", localtime(time()))." ===== fetched change\n";
}
my $worker = $WORKER;
$worker =~ s/\@SHA1\@/$rev/g;
@@ -146,7 +146,7 @@ sub process_commit($$$)
push @args, ("--sanity-review", ($score > 0) ? "+".$score : $score);
push @args, ("--message", '"'.$verdict.'"') if (length($verdict));
if (system(@gerrit, "review", @args, $rev)) {
- print "===== ".strftime("%c %Z", localtime(time()))." ===== verdict NOT submitted\n";
+ print "===== ".strftime("%c", localtime(time()))." ===== verdict NOT submitted\n";
printerr("Submission of verdict for ".$rev." (".$project."/".$ref.") failed");
return;
}