Created
August 3, 2011 16:40
-
-
Save msonnabaum/1123094 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/commands/pm/package_handler/git_drupalorg.inc b/commands/pm/package_handler/git_drupalorg.inc | |
index fe933e8..39d3075 100644 | |
--- a/commands/pm/package_handler/git_drupalorg.inc | |
+++ b/commands/pm/package_handler/git_drupalorg.inc | |
@@ -215,10 +215,10 @@ function drush_gitcache_add_project($gitcache, $request, $repository) { | |
if (drush_get_context('DRUSH_VERBOSE')) { | |
$command .= ' --verbose --progress '; | |
} | |
- $command .= '%s'; | |
- if (drush_shell_cd_and_exec($tmpdir, $command, $repository)) { | |
+ $command .= '%s %s'; | |
+ if (drush_shell_cd_and_exec($tmpdir, $command, $repository, $request['name'])) { | |
// Temporarily set the remote url to our temporary clone and fetch from there. | |
- drush_shell_cd_and_exec($gitcache, 'git remote add %s %s && git fetch %s --tags', $request['name'], $tmpdir, $request['name']); | |
+ drush_shell_cd_and_exec($gitcache, 'git remote add %s %s/%s && git fetch %s --tags', $request['name'], $tmpdir, $request['name'], $request['name']); | |
// Change the remote URL and fetch normally. | |
drush_shell_cd_and_exec($gitcache, 'git remote set-url %s %s && git fetch %s --tags', $request['name'], $repository, $request['name']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment