Browse Source

Use full hash in version information of dev phars, fixes #1502

Jordi Boggiano 12 years ago
parent
commit
2b36f61596
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Compiler.php

+ 1 - 1
src/Composer/Compiler.php

@@ -35,7 +35,7 @@ class Compiler
             unlink($pharFile);
         }
 
-        $process = new Process('git log --pretty="%h" -n1 HEAD', __DIR__);
+        $process = new Process('git log --pretty="%H" -n1 HEAD', __DIR__);
         if ($process->run() != 0) {
             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.');
         }