From 02632f8799af389aae27ef31805db915dd08815e Mon Sep 17 00:00:00 2001 From: Steve Kamerman Date: Thu, 16 May 2013 11:57:47 -0400 Subject: [PATCH] Bugfix: Remote GitHub builds fail --- PHPCI/Model/Build/RemoteGitBuild.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHPCI/Model/Build/RemoteGitBuild.php b/PHPCI/Model/Build/RemoteGitBuild.php index e11dde92..aafb4c8a 100644 --- a/PHPCI/Model/Build/RemoteGitBuild.php +++ b/PHPCI/Model/Build/RemoteGitBuild.php @@ -65,7 +65,7 @@ abstract class RemoteGitBuild extends Build // Use the key file to do an SSH clone: $cmd = 'ssh-agent ssh-add "%s" && git clone -b %s %s "%s" && ssh-agent -k'; - $success = $builder->executeCommand($cmd, $keyFile, $build->getBranch(), $this->getCloneUrl(), $to); + $success = $builder->executeCommand($cmd, $keyFile, $this->getBranch(), $this->getCloneUrl(), $to); // Remove the key file: unlink($keyFile);