Fixes issue with branches that start with a hash
This commit is contained in:
parent
e11a1cc3d3
commit
410e53da0b
|
@ -54,7 +54,7 @@ class RemoteGitBuild extends Build
|
|||
$cmd .= ' --depth ' . intval($depth) . ' ';
|
||||
}
|
||||
|
||||
$cmd .= ' -b %s %s "%s"';
|
||||
$cmd .= ' -b "%s" "%s" "%s"';
|
||||
$success = $builder->executeCommand($cmd, $this->getBranch(), $this->getCloneUrl(), $cloneTo);
|
||||
|
||||
if ($success) {
|
||||
|
@ -81,7 +81,7 @@ class RemoteGitBuild extends Build
|
|||
$cmd .= ' --depth ' . intval($depth) . ' ';
|
||||
}
|
||||
|
||||
$cmd .= ' -b %s %s "%s"';
|
||||
$cmd .= ' -b "%s" "%s" "%s"';
|
||||
$cmd = 'export GIT_SSH="'.$gitSshWrapper.'" && ' . $cmd;
|
||||
|
||||
$success = $builder->executeCommand($cmd, $this->getBranch(), $this->getCloneUrl(), $cloneTo);
|
||||
|
|
Loading…
Reference in a new issue