Skip to content

Commit c812c5c

Browse files
author
David Alger
committed
Fixed #76: corrects the assumption that basename provides a unique comparison.
1 parent 5e3730d commit c812c5c

File tree

1 file changed

+1
-1
lines changed
  • src/MagentoHackathon/Composer/Magento/Deploystrategy

1 file changed

+1
-1
lines changed

src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function createDelegate($source, $dest)
3737
// Namespace/ModuleDir => Namespace/ModuleDir, but ModuleDir may exist
3838

3939
if (file_exists($destPath) && is_dir($destPath)) {
40-
if (basename($sourcePath) === basename($destPath)) {
40+
if (strcmp($dest, $source) === 0) {
4141
// copy each child of $sourcePath into $destPath
4242
foreach (new \DirectoryIterator($sourcePath) as $item) {
4343
$item = (string) $item;

0 commit comments

Comments
 (0)