diff --git a/src/Composer/Package/Comparer/Comparer.php b/src/Composer/Package/Comparer/Comparer.php index ed1931e82..c0ab98d9c 100644 --- a/src/Composer/Package/Comparer/Comparer.php +++ b/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)) { diff --git a/tests/Composer/Test/Repository/Fixtures/artifacts/not-a-zip-with-zip-extension.zip b/tests/Composer/Test/Repository/Fixtures/artifacts/not-a-zip-with-zip-extension.zip index 562f032d4..ff342b0e6 100644 Binary files a/tests/Composer/Test/Repository/Fixtures/artifacts/not-a-zip-with-zip-extension.zip and b/tests/Composer/Test/Repository/Fixtures/artifacts/not-a-zip-with-zip-extension.zip differ