From c812c5cf25eaea201abb485fb61b5edacefdf54c Mon Sep 17 00:00:00 2001 From: David Alger Date: Wed, 5 Mar 2014 15:27:05 -0600 Subject: [PATCH] Fixed #76: corrects the assumption that basename provides a unique comparison. --- src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php b/src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php index 3b3f698f..bc82ddad 100644 --- a/src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php +++ b/src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php @@ -37,7 +37,7 @@ public function createDelegate($source, $dest) // Namespace/ModuleDir => Namespace/ModuleDir, but ModuleDir may exist if (file_exists($destPath) && is_dir($destPath)) { - if (basename($sourcePath) === basename($destPath)) { + if (strcmp($dest, $source) === 0) { // copy each child of $sourcePath into $destPath foreach (new \DirectoryIterator($sourcePath) as $item) { $item = (string) $item;