]>
Commit | Line | Data |
---|---|---|
b8c430b4 ER |
1 | --- composer-alpha7/src/Composer/Compiler.php~ 2013-04-01 13:18:27.000000000 +0300 |
2 | +++ composer-alpha7/src/Composer/Compiler.php 2013-04-01 22:27:27.313555304 +0300 | |
3 | @@ -35,6 +35,8 @@ | |
7e4a1874 ER |
4 | unlink($pharFile); |
5 | } | |
6 | ||
7e4a1874 | 7 | + $this->version = getenv('COMPOSER_VERSION'); |
b8c430b4 ER |
8 | + if (empty($this->version)) { |
9 | $process = new Process('git log --pretty="%H" -n1 HEAD', __DIR__); | |
10 | if ($process->run() != 0) { | |
11 | throw new \RuntimeException('Can\'t run git log. You must ensure to run compile from composer git repository clone and that git binary is available.'); | |
12 | @@ -45,6 +47,7 @@ | |
13 | if ($process->run() == 0) { | |
14 | $this->version = trim($process->getOutput()); | |
15 | } | |
16 | + } | |
7e4a1874 ER |
17 | |
18 | $phar = new \Phar($pharFile, 0, 'composer.phar'); | |
19 | $phar->setSignatureAlgorithm(\Phar::SHA1); |