Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c60cf77

Browse files
committed
Use env vars as a "temporary activation"
1 parent d3504c8 commit c60cf77

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

lib/git-shell-out-strategy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default class GitShellOutStrategy {
5757
exec(args, {stdin, useGitPromptServer, writeOperation} = GitShellOutStrategy.defaultExecArgs) {
5858
/* eslint-disable no-console */
5959
const subscriptions = new CompositeDisposable();
60-
const diagnosticsEnabled = atom.config.get('github.gitDiagnostics');
60+
const diagnosticsEnabled = process.env.ATOM_GITHUB_GIT_DIAGNOSTICS || atom.config.get('github.gitDiagnostics');
6161

6262
const formattedArgs = `git ${args.join(' ')} in ${this.workingDir}`;
6363
const timingMarker = GitTimingsView.generateMarker(`git ${args.join(' ')}`);

lib/models/event-logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default class EventLogger {
9292
}
9393

9494
isEnabled() {
95-
return atom.config.get('github.filesystemEventDiagnostics');
95+
return process.env.ATOM_GITHUB_FS_EVENT_LOG || atom.config.get('github.filesystemEventDiagnostics');
9696
}
9797

9898
getShortName() {

test/helpers.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,3 @@ after(() => {
195195
WorkerManager.reset(true);
196196
}
197197
});
198-
199-
// eslint-disable-next-line jasmine/no-global-setup
200-
before(() => {
201-
if (process.env.ATOM_GITHUB_FS_EVENT_LOG) {
202-
atom.config.set('github.filesystemEventDiagnostics', true);
203-
}
204-
205-
if (process.env.ATOM_GITHUB_GIT_DIAGNOSTICS) {
206-
atom.config.set('github.gitDiagnostics', true);
207-
}
208-
});

0 commit comments

Comments
 (0)