? includes/table.inc
Index: includes/environment.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/includes/environment.inc,v
retrieving revision 1.60
diff -u -p -r1.60 environment.inc
--- includes/environment.inc	27 Dec 2009 01:08:21 -0000	1.60
+++ includes/environment.inc	27 Dec 2009 01:12:26 -0000
@@ -852,7 +852,7 @@ function drush_locate_root($start_path =
   $drupal_root = FALSE;
 
   $start_path = empty($start_path) ? drush_cwd() : $start_path;
-  foreach (array(FALSE, TRUE) as $follow_symlinks) {
+  foreach (array(TRUE, FALSE) as $follow_symlinks) {
     $path = $start_path;
     if ($follow_symlinks && is_link($path)) {
       $path = realpath($path);
@@ -860,6 +860,7 @@ function drush_locate_root($start_path =
     // Check the start path.
     if (drush_valid_drupal_root($path)) {
       $drupal_root = $path;
+      break;
     }
     else {
       // Move up dir by dir and check each.
@@ -869,7 +870,7 @@ function drush_locate_root($start_path =
         }
         if (drush_valid_drupal_root($path)) {
           $drupal_root = $path;
-          break;
+          break 2;
         }
       }
     }
