Skip to content

Commit 9b9d026

Browse files
committed
fixing release process
1 parent 397481c commit 9b9d026

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Phar/Compiler.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ public function compile($pharFile = 'docs.phar')
3939
unlink($pharFile);
4040
}
4141

42-
$process = new Process('git log --pretty="%H" -n1 HEAD', __DIR__);
42+
$process = new Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
4343
if (0 != $process->run()) {
4444
throw new \RuntimeException('Can\'t run git log.');
4545
}
4646
$this->version = trim($process->getOutput());
4747

48-
$process = new Process('git log -n1 --pretty=%ci HEAD', __DIR__);
48+
$process = new Process(['git', 'log', '-n1', '--pretty=%ci', 'HEAD'], __DIR__);
4949
if (0 != $process->run()) {
5050
throw new \RuntimeException('Can\'t run git log.');
5151
}
5252
$date = new \DateTime(trim($process->getOutput()));
5353
$date->setTimezone(new \DateTimeZone('UTC'));
5454
$this->versionDate = $date->format('Y-m-d H:i:s');
5555

56-
$process = new Process('git describe --tags HEAD');
56+
$process = new Process(['git', 'describe', '--tags', 'HEAD']);
5757
if (0 == $process->run()) {
5858
$this->version = trim($process->getOutput());
5959
}
@@ -80,11 +80,11 @@ public function compile($pharFile = 'docs.phar')
8080
->name('*.php')
8181
->exclude('Tests')
8282
->in(__DIR__.'/../../vendor/doctrine/')
83+
->in(__DIR__.'/../../vendor/gajus/')
8384
->in(__DIR__.'/../../vendor/psr/')
8485
->in(__DIR__.'/../../vendor/scrivo/')
8586
->in(__DIR__.'/../../vendor/symfony/')
8687
->in(__DIR__.'/../../vendor/twig/')
87-
->in(__DIR__.'/../../vendor/ralouphie/')
8888
;
8989

9090
foreach ($finder as $file) {

0 commit comments

Comments
 (0)