Skip to content

Commit

Permalink
fixed escape canceling commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnstonCode committed Nov 9, 2017
1 parent b28d305 commit 201e615
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
**FILL ME**
**v0.10.0**
=============================================

## What's New
- Added refresh button to source control view

## Bug Fixes
- Esc now cancels commit rather than committing with undefined message

**v0.9.0**
=============================================

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "svn-scm",
"displayName": "SVN",
"description": "Integrated Subversion source control",
"version": "0.9.0",
"version": "0.10.0",
"publisher": "johnstoncode",
"engines": {
"vscode": "^1.16.0"
Expand Down
6 changes: 5 additions & 1 deletion src/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,13 @@ SvnCommands.prototype.commit = async function(repository, ...args) {
const paths = args.map(resourceState => {
return resourceState.resourceUri.fsPath;
});
const message = await inputCommitMessage();

if (message === undefined) {
return;
}

try {
const message = await inputCommitMessage();
await repository.repository.commitFiles(message, paths);
changesCommitted();
repository.update();
Expand Down

0 comments on commit 201e615

Please sign in to comment.