Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Commit

Permalink
fix: remove last commit message after commit
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Nov 18, 2019
1 parent 40c481a commit 62ec74a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/commands/commit-staged.js
Expand Up @@ -36,6 +36,7 @@ export default {
const numFiles = `${stagedFiles.length} File${stagedFiles.length !== 1 ? "s" : ""}`;
await helper.checkGitLock(root);
const results = await git.commit(root, message, amend, null);
localStorage.removeItem("git-menu.commit-message");
notifications.addGit(title, results);
helper.refreshAtom(root);
const success = {title, message: `${numFiles} committed.`};
Expand All @@ -46,7 +47,6 @@ export default {
await push([root], statusBar, git, notifications);
success.message = `${numFiles} committed & pushed.`;
}
localStorage.removeItem("git-menu.commit-message");
return success;
},
};
2 changes: 1 addition & 1 deletion lib/commands/commit.js
Expand Up @@ -38,6 +38,7 @@ export default {
results.push(await git.unstage(root));
results.push(await git.add(root, reducedFiles));
results.push(await git.commit(root, message, amend, null));
localStorage.removeItem("git-menu.commit-message");
notifications.addGit(title, results);
helper.refreshAtom(root);
const success = {title, message: `${numFiles} committed.`};
Expand All @@ -48,7 +49,6 @@ export default {
await push([root], statusBar, git, notifications);
success.message = `${numFiles} committed & pushed.`;
}
localStorage.removeItem("git-menu.commit-message");
return success;
},
};

0 comments on commit 62ec74a

Please sign in to comment.