fixing issue with fetch

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

Branch: refs/heads/master
Commit: 5ec29247881cbaecc3ab787dc61260b1ead3d43a
Parents: 671283e
Author: Anis Kadri <[email protected]>
Authored: Mon Jun 17 16:15:43 2013 -0700
Committer: Anis Kadri <[email protected]>
Committed: Thu Jul 11 13:12:38 2013 -0700

----------------------------------------------------------------------
 src/fetch.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/5ec29247/src/fetch.js
----------------------------------------------------------------------
diff --git a/src/fetch.js b/src/fetch.js
index 0589fb5..c8cd653 100644
--- a/src/fetch.js
+++ b/src/fetch.js
@@ -75,7 +75,7 @@ module.exports = function fetchPlugin(plugin_dir, 
plugins_dir, options, callback
         
         if(!fs.existsSync(plugin_dir)) {
           registry.use(null, function() {
-            registry.fetch(plugin_dir, function(err, plugin_dir) {
+            registry.fetch([plugin_dir], function(err, plugin_dir) {
               movePlugin(plugin_dir, false);
             });
           })

Reply via email to