Index: drush_make.download.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush_make/Attic/drush_make.download.inc,v
retrieving revision 1.1.2.21
diff -u -p -r1.1.2.21 drush_make.download.inc
--- drush_make.download.inc	15 Dec 2009 17:06:38 -0000	1.1.2.21
+++ drush_make.download.inc	17 Dec 2009 01:13:30 -0000
@@ -189,7 +189,6 @@ class DrushMakeDownload_Git extends Drus
     if (!empty($download['url'])) {
       $this->project->download['branch'] = $download['branch'] = isset($download['branch']) ? $download['branch'] : 'master';
       if (drush_shell_exec("git clone %s %s/%s", $download['url'], $tmp_path, $name)) {
-        drush_shell_exec("rm -rf %s/%s/.git", $tmp_path, $name);
         drush_log(dt('%project cloned from %url.', array('%project' => $name, '%url' => $download['url'])), 'ok');
       }
       else {
@@ -200,7 +199,6 @@ class DrushMakeDownload_Git extends Drus
         $cwd = getcwd();
         chdir($tmp_path . '/' . $name);
         if (drush_shell_exec("git checkout -b %s origin/%s", $download['branch'], $download['branch'])) {
-          drush_shell_exec("rm -rf %s/%s/.git", $tmp_path, $name);
           drush_log(dt("Checked out branch %branch.", array('%branch' => $download['branch'])), 'ok');
         }
         else {
@@ -208,6 +206,9 @@ class DrushMakeDownload_Git extends Drus
         }
         chdir($cwd);
       }
+      if (file_exists($tmp_path . '/' . $name . '/.git')) {
+        drush_shell_exec("rm -rf %s/%s/.git", $tmp_path, $name);
+      }
       return $name;
     }
     else {
