com karma: fix undefined tagger_date for not annotated tags: lib/Git/PostReceiveHook.php

From: Date: Fri, 23 Mar 2012 07:11:10 +0000
Subject: com karma: fix undefined tagger_date for not annotated tags: lib/Git/PostReceiveHook.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-68166@lists.php.net to get a copy of this message
Commit: aa1ceee7c98d64e501f93ccc789314d795a6afee Author: Alexander Moskaliov <irker@php.net> Fri, 23 Mar 2012 11:11:10 +0400 Parents: 0f69df22dc02dd48ede2d73b14881b7cd12ff797 Branches: master Link: http://git.php.net/?p=karma.git;a=commitdiff;h=aa1ceee7c98d64e501f93ccc789314d795a6afee Log: fix undefined tagger_date for not annotated tags Changed paths: M lib/Git/PostReceiveHook.php Diff: aa1ceee7c98d64e501f93ccc789314d795a6afee diff --git a/lib/Git/PostReceiveHook.php b/lib/Git/PostReceiveHook.php index eecc9cf..2a54abc 100644 --- a/lib/Git/PostReceiveHook.php +++ b/lib/Git/PostReceiveHook.php @@ -266,7 +266,6 @@ class PostReceiveHook extends ReceiveHook if ($changeType != self::TYPE_DELETED) { $info = $this->getTagInfo($name); - $mail->setTimestamp(strtotime($info['tagger_date'])); $targetInfo = $this->getCommitInfo($info['target']); $targetPaths = $this->getChangedPaths(escapeshellarg($info['target'])); $pathsString = ''; @@ -279,6 +278,7 @@ class PostReceiveHook extends ReceiveHook $message .= 'Tag: ' . $info['revision'] . "\n"; $message .= 'Tagger: ' . $info['tagger'] . $info['tagger_email'] . ' ' . $info['tagger_date'] . "\n"; $message .= "Log:\n" . $info['log'] . "\n"; + $mail->setTimestamp(strtotime($info['tagger_date'])); } $message .= "\n";

« previous php.cvs (#68166) next »