Various bug fixes
This commit is contained in:
parent
0adaf0c400
commit
b47dfbd0b3
15 changed files with 82 additions and 43 deletions
|
|
@ -74,7 +74,14 @@ class RemoteGitBuild extends Build
|
|||
protected function cloneBySsh(Builder $builder, $to)
|
||||
{
|
||||
// Copy the project's keyfile to disk:
|
||||
$keyFile = realpath($to) . '.key';
|
||||
$keyPath = realpath($to);
|
||||
|
||||
if ($keyPath === false) {
|
||||
$keyPath = dirname($to);
|
||||
}
|
||||
|
||||
$keyFile = $keyPath . '.key';
|
||||
|
||||
file_put_contents($keyFile, $this->getProject()->getGitKey());
|
||||
chmod($keyFile, 0600);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue