Fixing comparison where commit ID is Manual.

Fixes #823
This commit is contained in:
Dan Cryer 2015-02-25 14:13:28 +00:00
parent 18ff21174e
commit e423c73c4e

View file

@ -209,7 +209,9 @@ class GithubBuild extends RemoteGitBuild
if (!empty($prNumber)) {
$builder->executeCommand('cd %s && git diff origin/%s "%s"', $path, $this->getBranch(), $file);
} else {
$builder->executeCommand('cd %s && git diff %s^! "%s"', $path, $this->getCommitId(), $file);
$commitId = $this->getCommitId();
$compare = $commitId == 'Manual' ? 'HEAD' : $commitId;
$builder->executeCommand('cd %s && git diff %s^! "%s"', $path, $compare, $file);
}
$builder->logExecOutput(true);