Explorar o código

Fixed root identifier: Use global hash instead of local revision

Per Bernhardt %!s(int64=13) %!d(string=hai) anos
pai
achega
f74dafc08c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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];
         }