diff options
author | Julien Gilli <julien.gilli@joyent.com> | 2015-03-16 15:55:17 -0700 |
---|---|---|
committer | Julien Gilli <julien.gilli@joyent.com> | 2015-03-16 15:55:17 -0700 |
commit | ae58fc407f916b2abb164453a5b09273c543dbc3 (patch) | |
tree | 4a16fe73f996a54f34cfb553b2995d16c1375b7f /deps/npm/lib/utils/git.js | |
parent | 2b64132101f179c30957e3c5f16fc47a8ec942e1 (diff) | |
parent | eb2764a9452baa7cba2d98dc34fa00fc776b0a12 (diff) | |
download | node-merge-review.tar.gz |
Merge remote-tracking branch 'upstream/v0.12'merge-review
Diffstat (limited to 'deps/npm/lib/utils/git.js')
-rw-r--r-- | deps/npm/lib/utils/git.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/deps/npm/lib/utils/git.js b/deps/npm/lib/utils/git.js index 78cb083ee..a312770a8 100644 --- a/deps/npm/lib/utils/git.js +++ b/deps/npm/lib/utils/git.js @@ -18,8 +18,13 @@ function prefixGitArgs () { } function execGit (args, options, cb) { - log.info("git", args) - return exec(git, prefixGitArgs().concat(args || []), options, cb) + log.info('git', args) + var fullArgs = prefixGitArgs().concat(args || []) + return exec(git, fullArgs, options, function (err) { + if (err) log.error('git', fullArgs.join(' ')) + + cb.apply(null, arguments) + }) } function spawnGit (args, options) { |