Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit ba5d258

Browse files
committed
Take out the special config behavior in spec mode
1 parent d7ce6f5 commit ba5d258

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/git-shell-out-strategy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ export default class GitShellOutStrategy {
10071007
let output;
10081008
try {
10091009
let args = ['config'];
1010-
if (local || (atom.inSpecMode() && option !== 'atomGithub.test')) { args.push('--local'); }
1010+
if (local) { args.push('--local'); }
10111011
args = args.concat(option);
10121012
output = await this.exec(args);
10131013
} catch (err) {
@@ -1025,7 +1025,7 @@ export default class GitShellOutStrategy {
10251025
setConfig(option, value, {replaceAll, global} = {}) {
10261026
let args = ['config'];
10271027
if (replaceAll) { args.push('--replace-all'); }
1028-
if (global && (!atom.inSpecMode() || option === 'atomGithub.test')) { args.push('--global'); }
1028+
if (global) { args.push('--global'); }
10291029
args = args.concat(option, value);
10301030
return this.exec(args, {writeOperation: true});
10311031
}

test/integration/helpers.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export async function setup(options = {}) {
4242
};
4343

4444
const atomEnv = global.buildAtomEnvironment();
45-
sinon.stub(atom, 'inSpecMode').returns(false);
4645

4746
let suiteRoot = document.getElementById('github-IntegrationSuite');
4847
if (!suiteRoot) {

0 commit comments

Comments
 (0)