Skip to content

Commit b93fc6c

Browse files
authored
Merge pull request from GHSA-47f6-5gq3-vx9c
1 parent fc57b93 commit b93fc6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Composer/Downloader/GitDownloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public function getUnpushedChanges(PackageInterface $package, $path)
290290
$unpushedChanges = null;
291291
}
292292
foreach ($remoteBranches as $remoteBranch) {
293-
$command = sprintf('git diff --name-status %s...%s --', $remoteBranch, $branch);
293+
$command = sprintf('git diff --name-status %s --', ProcessExecutor::escape($remoteBranch.'...'.$branch));
294294
if (0 !== $this->process->execute($command, $output, $path)) {
295295
throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
296296
}

0 commit comments

Comments
 (0)