auto-git:
[change] main.js
This commit is contained in:
4
main.js
4
main.js
@@ -1136,7 +1136,6 @@ function addMatchingFilesToGitignore(folderPath, pattern) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async function autoCommit(folderPath, message, win) {
|
async function autoCommit(folderPath, message, win) {
|
||||||
|
|
||||||
const git = simpleGit(folderPath);
|
const git = simpleGit(folderPath);
|
||||||
@@ -1152,9 +1151,6 @@ async function autoCommit(folderPath, message, win) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let currentBranch = null;
|
let currentBranch = null;
|
||||||
try {
|
try {
|
||||||
currentBranch = (await git.revparse(['--abbrev-ref', 'HEAD'])).trim();
|
currentBranch = (await git.revparse(['--abbrev-ref', 'HEAD'])).trim();
|
||||||
|
|||||||
Reference in New Issue
Block a user