Skip to content

Instantly share code, notes, and snippets.

@msonnabaum
Created August 3, 2011 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msonnabaum/1123094 to your computer and use it in GitHub Desktop.
Save msonnabaum/1123094 to your computer and use it in GitHub Desktop.
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