Browse Source

rm vcs repo target dir before install

Ken Marfilla 13 năm trước cách đây
mục cha
commit
3e6c8caae7
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/Composer/Downloader/VcsDownloader.php

+ 1 - 0
src/Composer/Downloader/VcsDownloader.php

@@ -51,6 +51,7 @@ abstract class VcsDownloader implements DownloaderInterface
         }
 
         $this->io->write("  - Package <info>" . $package->getName() . "</info> (<comment>" . $package->getPrettyVersion() . "</comment>)");
+        $this->filesystem->removeDirectory($path);
         $this->doDownload($package, $path);
         $this->io->write('');
     }