Ver código fonte

Fixed root identifier: Use global hash instead of local revision

Per Bernhardt 13 anos atrás
pai
commit
f74dafc08c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Composer/Repository/Vcs/HgDriver.php

+ 1 - 1
src/Composer/Repository/Vcs/HgDriver.php

@@ -55,7 +55,7 @@ class HgDriver implements VcsDriverInterface
     {
         $tmpDir = escapeshellarg($this->tmpDir);
         if (null === $this->rootIdentifier) {
-            exec(sprintf('cd %s && hg tip --template "{rev}:{node|short}" --color never', $tmpDir), $output);
+            exec(sprintf('cd %s && hg tip --template "{node}" --color never', $tmpDir), $output);
             $this->rootIdentifier = $output[0];
         }