Merge pull request from GHSA-47f6-5gq3-vx9c
parent
6bd43dff85
commit
ee28354ca8
|
@ -294,9 +294,9 @@ class GitDownloader extends VcsDownloader implements DvcsDownloaderInterface
|
||||||
$unpushedChanges = null;
|
$unpushedChanges = null;
|
||||||
}
|
}
|
||||||
foreach ($remoteBranches as $remoteBranch) {
|
foreach ($remoteBranches as $remoteBranch) {
|
||||||
$command = sprintf('git diff --name-status %s...%s --', $remoteBranch, $branch);
|
$command = ['git', 'diff', '--name-status', $remoteBranch.'...'.$branch, '--'];
|
||||||
if (0 !== $this->process->execute($command, $output, $path)) {
|
if (0 !== $this->process->execute($command, $output, $path)) {
|
||||||
throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
|
throw new \RuntimeException('Failed to execute ' . implode(' ', $command) . "\n\n" . $this->process->getErrorOutput());
|
||||||
}
|
}
|
||||||
|
|
||||||
$output = trim($output);
|
$output = trim($output);
|
||||||
|
|
Loading…
Reference in New Issue