Browse Source

Make sure we chdir back in case update dir is relative, refs #7519

Jordi Boggiano 6 years ago
parent
commit
1898ad12ce
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Composer/Package/Comparer/Comparer.php

+ 1 - 0
src/Composer/Package/Comparer/Comparer.php

@@ -70,6 +70,7 @@ class Comparer
         if (!is_array($source)) {
             return;
         }
+        chdir($currentDirectory);
         chdir($this->update);
         $destination = $this->doTree('.', $destination);
         if (!is_array($destination)) {