gitxelectron 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/out/main/index.js CHANGED
@@ -443,7 +443,8 @@ function initGit(sessionId, baseDir) {
443
443
  const options = {
444
444
  baseDir,
445
445
  binary: "git",
446
- maxConcurrentProcesses: 6
446
+ maxConcurrentProcesses: 6,
447
+ unsafe: { allowUnsafeEditor: true }
447
448
  };
448
449
  const git = simpleGit.simpleGit(options);
449
450
  gitSessions.set(sessionId, { git, repoPath: baseDir });
@@ -876,7 +877,7 @@ async function getUniversalDiff(workspacePath, filePath) {
876
877
  }
877
878
  }
878
879
  async function commitUniversalWorkspace(workspacePath, message, branch) {
879
- const git = simpleGit.simpleGit(workspacePath).env({
880
+ const git = simpleGit.simpleGit({ baseDir: workspacePath, unsafe: { allowUnsafeEditor: true } }).env({
880
881
  ...process.env,
881
882
  GCM_INTERACTIVE: "false",
882
883
  GIT_TERMINAL_PROMPT: "0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitxelectron",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "An elegant, completely silent auto-syncing Git client. Works as a desktop app and npm CLI tool.",
5
5
  "main": "./out/main/index.js",
6
6
  "files": [
@@ -8,8 +8,7 @@
8
8
  "bin"
9
9
  ],
10
10
  "bin": {
11
- "gitelectron": "./bin/cli.js",
12
- "gitquickpush": "./bin/cli.js"
11
+ "gitxelectron": "./bin/cli.js"
13
12
  },
14
13
  "author": "GitElectron <support@gitelectron.com>",
15
14
  "license": "MIT",