? 721240.patch
? includes/table.inc
Index: includes/command.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/includes/command.inc,v
retrieving revision 1.65
diff -u -p -r1.65 command.inc
--- includes/command.inc	19 Feb 2010 16:01:27 -0000	1.65
+++ includes/command.inc	22 Feb 2010 01:46:01 -0000
@@ -499,9 +499,14 @@ function _drush_find_commandfiles($phase
       }
 
       // User commands, residing in ~/.drush
+      // $_SERVER['HOME'] isn't set on windows and generates a Notice.
       if (!empty($_SERVER['HOME'])) {
         $searchpath[] = $_SERVER['HOME'] . '/.drush';
       }
+      elseif (!empty($_SERVER['HOMEDRIVE']) && !empty($_SERVER['HOMEPATH'])) {
+        // home on windows
+        $searchpath[] = $_SERVER['HOMEDRIVE'] . $_SERVER['HOMEPATH'] . '/.drush';
+      }
       break;
     case DRUSH_BOOTSTRAP_DRUPAL_SITE:
       $searchpath[] = conf_path() . '/modules';
