]> git.pld-linux.org Git - packages/composer.git/blob - nogit.patch
up to 1.0.0-alpha9
[packages/composer.git] / nogit.patch
1 --- composer-1.0.x-b23a3cd/src/Composer/Compiler.php~   2014-11-28 15:47:34.000000000 +0200
2 +++ composer-1.0.x-b23a3cd/src/Composer/Compiler.php    2014-11-28 15:53:21.829773210 +0200
3 @@ -40,13 +40,13 @@
4              unlink($pharFile);
5          }
6  
7 -        $process = new Process('git log --pretty="%H" -n1 HEAD', __DIR__);
8 +        $process = new Process('echo $PACKAGE_VERSION', __DIR__);
9          if ($process->run() != 0) {
10              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.');
11          }
12          $this->version = trim($process->getOutput());
13  
14 -        $process = new Process('git log -n1 --pretty=%ci HEAD', __DIR__);
15 +        $process = new Process('echo $RELEASE_DATE', __DIR__);
16          if ($process->run() != 0) {
17              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.');
18          }
19 @@ -55,7 +55,7 @@
20          $date->setTimezone(new \DateTimeZone('UTC'));
21          $this->versionDate = $date->format('Y-m-d H:i:s');
22  
23 -        $process = new Process('git describe --tags HEAD');
24 +        $process = new Process('echo $PACKAGE_VERSION; exit $DEV_VERSION');
25          if ($process->run() == 0) {
26              $this->version = trim($process->getOutput());
27          } else {
This page took 0.068054 seconds and 3 git commands to generate.