1
0
Fork 0

Use tag as package version if built off of a tag

pull/384/head
Beau Simensen 2012-03-04 10:03:54 -08:00
parent 6de46a16e6
commit bc4e06424e
1 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,11 @@ class Compiler
}
$this->version = trim($process->getOutput());
$process = new Process('git describe --tags HEAD');
if ($process->run() == 0) {
$this->version = trim($process->getOutput());
}
$phar = new \Phar($pharFile, 0, 'composer.phar');
$phar->setSignatureAlgorithm(\Phar::SHA1);