From 2b36f615962a504e583a4ad496253a527e791347 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 13 Feb 2013 14:32:50 +0100 Subject: [PATCH] Use full hash in version information of dev phars, fixes #1502 --- src/Composer/Compiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Compiler.php b/src/Composer/Compiler.php index 311a764ac..e9431636f 100644 --- a/src/Composer/Compiler.php +++ b/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.'); }