diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2014-05-02 04:18:49 +0400 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2014-05-08 05:00:50 +0400 |
commit | a469a56e820f95b9031176dfdec8ec961717129f (patch) | |
tree | 2e5d2b6b40d75c1399405a2712cf8f23667ddbbf /lib | |
parent | 5865427fc7927195963da2fb3018992364354dd6 (diff) |
fix implicit global
Diffstat (limited to 'lib')
-rw-r--r-- | lib/submodule.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/submodule.js b/lib/submodule.js index 72a224814..42e6c1eb5 100644 --- a/lib/submodule.js +++ b/lib/submodule.js @@ -99,9 +99,9 @@ var getSubmodules = function getSubmodules (cb) { err.code = "ENOGIT" return cb(err) } - exec(git, args, function (er, stdout, stderr) { + exec(git, args, function (er, stdout) { if (er) return cb(er) - res = stdout.trim().split(/\n/).map(function (line) { + var res = stdout.trim().split(/\n/).map(function (line) { return line.trim().split(/\s+/)[1] }).filter(function (line) { // only care about submodules in the node_modules folder. |