Преглед на файлове

Fixed root identifier: Use global hash instead of local revision

Per Bernhardt преди 13 години
родител
ревизия
f74dafc08c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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];
         }