فهرست منبع

rm vcs repo target dir before install

Ken Marfilla 13 سال پیش
والد
کامیت
3e6c8caae7
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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('');
     }