Browse Source

Revert "Added branch-alias for dev-master to ```--version|-V``` output when current", fixes #3356

This reverts commit 225a8f7a5660e12ad53298859a6674293cca3cb9.
Jordi Boggiano 10 years ago
parent
commit
b0cabd1e98
1 changed files with 0 additions and 9 deletions
  1. 0 9
      src/Composer/Compiler.php

+ 0 - 9
src/Composer/Compiler.php

@@ -12,7 +12,6 @@
 
 namespace Composer;
 
-use Composer\Json\JsonFile;
 use Symfony\Component\Finder\Finder;
 use Symfony\Component\Process\Process;
 
@@ -45,14 +44,6 @@ class Compiler
         }
         $this->version = trim($process->getOutput());
 
-        $localConfig = __DIR__.'/../../composer.json';
-        $file = new JsonFile($localConfig);
-        $localConfig = $file->read();
-
-        if (isset($localConfig['extra']['branch-alias']['dev-master'])) {
-            $this->version = sprintf('%s (%s)', $localConfig['extra']['branch-alias']['dev-master'], $this->version);
-        }
-
         $process = new Process('git log -n1 --pretty=%ci 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.');