Hopefully fixing the clone issues for Pull Requests
This commit is contained in:
parent
079ebc5275
commit
4806d1a783
|
@ -252,7 +252,7 @@ class WebhookController extends \PHPCI\Controller
|
|||
if (!is_null($extra)) {
|
||||
$build->setExtra(json_encode($extra));
|
||||
}
|
||||
|
||||
|
||||
$build = BuildFactory::getBuild($this->buildStore->save($build));
|
||||
|
||||
// Send a status postback if the build type provides one:
|
||||
|
|
|
@ -128,7 +128,7 @@ class GithubBuild extends RemoteGitBuild
|
|||
$remoteUrl = $this->getExtra('remote_url');
|
||||
$remoteBranch = $this->getExtra('remote_branch');
|
||||
|
||||
$cmd = 'cd "%s" && git checkout -b phpci/' . $this->getId() . ' %s && git pull %s %s';
|
||||
$cmd = 'cd "%s" && git checkout -b phpci/' . $this->getId() . ' %s && git pull -q --no-edit %s %s';
|
||||
$success = $builder->executeCommand($cmd, $cloneTo, $this->getBranch(), $remoteUrl, $remoteBranch);
|
||||
}
|
||||
} catch (\Exception $ex) {
|
||||
|
|
Loading…
Reference in a new issue