You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by br...@apache.org on 2013/10/31 20:27:12 UTC

git commit: CB-5091: Use cwd option rather than shell.cd when cloning plugin repos

Updated Branches:
  refs/heads/master 8015c7364 -> ab36ffac6


CB-5091: Use cwd option rather than shell.cd when cloning plugin repos


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/ab36ffac
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/ab36ffac
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/ab36ffac

Branch: refs/heads/master
Commit: ab36ffac6e8a77c767244094802dd08b74594163
Parents: 8015c73
Author: Braden Shepherdson <br...@gmail.com>
Authored: Thu Oct 31 15:26:21 2013 -0400
Committer: Braden Shepherdson <br...@gmail.com>
Committed: Thu Oct 31 15:26:21 2013 -0400

----------------------------------------------------------------------
 src/util/plugins.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/ab36ffac/src/util/plugins.js
----------------------------------------------------------------------
diff --git a/src/util/plugins.js b/src/util/plugins.js
index 9b5861d..b21be86 100644
--- a/src/util/plugins.js
+++ b/src/util/plugins.js
@@ -40,11 +40,11 @@ module.exports = {
 
         shell.rm('-rf', tmp_dir);
 
-        shell.cd(path.dirname(tmp_dir));
         var cmd = util.format('git clone "%s" "%s"', plugin_git_url, path.basename(tmp_dir));
         require('../../plugman').emit('verbose', 'Fetching plugin via git-clone command: ' + cmd);
         var d = Q.defer();
-        child_process.exec(cmd, function(err, stdout, stderr) {
+
+        child_process.exec(cmd, { cwd: path.dirname(tmp_dir) }, function(err, stdout, stderr) {
             if (err) {
                 d.reject(err);
             } else {