diff --git a/.gh.json b/.gh.json index 43586a94..7e76f77e 100644 --- a/.gh.json +++ b/.gh.json @@ -13,8 +13,6 @@ "default_pr_reviewer": "", - "git_command": "git", - "github_token": "", "github_user": "", diff --git a/lib/git.js b/lib/git.js index ec91877b..3b33dad6 100644 --- a/lib/git.js +++ b/lib/git.js @@ -11,8 +11,7 @@ var base = require('./base'), logger = require('./logger'), - spawn = require('child_process').spawn, - config = base.getConfig(); + spawn = require('child_process').spawn; exports.checkout = function(branch, opt_newBranch, opt_callback) { var args; @@ -71,7 +70,7 @@ exports.exec = function(cmd, args, opt_callback, opt_log) { args.unshift(cmd); - git = spawn(config.git_command, exports.deleteArrayEmptyValues_(args)); + git = spawn('git', exports.deleteArrayEmptyValues_(args)); git.stdout.on('data', function(data) { buf += data;