When using --package-handler=cvs on Windows you get the following errors:

Unable to checkout drupal from cvs.drupal.org. [error]
Unable to check out !project to C:/Inetpub/drupal from cvs.drupal.org [error]
An error occurred at function : drush_pm_download [error]

The problem is in the file drush\commands\pm\package_handler\cvs.inc on line 99. In Windows getcwd() returns a path with back slahes but $path has forward slashes so str_replace() doesn't work properly.

I think it could be safe to just do a str_replace('\\','/',getcwd())

Comments

moshe weitzman’s picture

Status: Active » Fixed

committed as suggested. thanks.

moshe weitzman’s picture

committed suggested fix. thanks. please reopen if issues persist.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.