Skip to content

Commit

Permalink
Merge pull request #1307 from campersau/giteditor
Browse files Browse the repository at this point in the history
Set git core.editor=: to prevent opening git editor
  • Loading branch information
campersau authored Mar 29, 2020
2 parents 356762e + d016225 commit 86ebf99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/git-promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const isWindows = /^win/.test(process.platform);
const Bluebird = require('bluebird');
const fs = require('./utils/fs-async');
const gitEmptyReproSha1 = '4b825dc642cb6eb9a060e54bf8d69288fbee4904'; // https://stackoverflow.com/q/9765453
const gitConfigArguments = ['-c', 'color.ui=false', '-c', 'core.quotepath=false', '-c', 'core.pager=cat', '-c', 'rebase.backend=apply' /* fix for #1301 */];
const gitConfigArguments = ['-c', 'color.ui=false', '-c', 'core.quotepath=false', '-c', 'core.pager=cat', '-c', 'core.editor=:'];
const gitSem = require('locks').createSemaphore(config.maxConcurrentGitOperations);
const gitOptionalLocks = config.isGitOptionalLocks ? '--no-optional-locks' : '';
const gitBin = (() => {
Expand Down Expand Up @@ -41,7 +41,7 @@ const gitExecutorProm = (args, retryCount) => {
let stdout = '';
let stderr = '';
let env = JSON.parse(JSON.stringify(process.env));
env['LC_ALL'] = 'C'
env['LC_ALL'] = 'C';
const procOpts = { cwd: args.repoPath, maxBuffer: 1024 * 1024 * 100, detached: false, env: env }
const gitProcess = child_process.spawn(gitBin, args.commands, procOpts);
if (args.timeout) {
Expand Down

0 comments on commit 86ebf99

Please sign in to comment.