Skip to content

Commit

Permalink
fixed no changes showing
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnstonCode committed Nov 8, 2017
1 parent 3ddb85f commit b713787
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
**v0.8.9**
=============================================

## Bug Fixes
- Using the source control commit box should only commit changes listed
- Re-fixed no changes showing.

**v0.8.9**
=============================================

## Bug Fixes
- Fixed Missing icons
- Fixed all changes showing as untracked
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.8.9",
"version": "0.8.10",
"publisher": "johnstoncode",
"engines": {
"vscode": "^1.16.0"
Expand Down
2 changes: 1 addition & 1 deletion src/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Repository.prototype.provideOriginalResource = uri => {
Repository.prototype.update = async function() {
let changes = [];
let notTracked = [];
let statuses = (await this.repository.getStatus()) || [];
let statuses = (await this.repository.getStatus().catch(() => {})) || [];

statuses.forEach(status => {
switch (status[0]) {
Expand Down
20 changes: 10 additions & 10 deletions src/svn.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ svn.prototype.list = async function(filePath) {
};

svn.prototype.commitFiles = function(message, files) {
files = files.join(' ');
return this.exec("", ["commit", "-m", message, files]);
}
files = files.join(" ");

return this.exec("", ["commit", "-m", message, files]);
};

module.exports = svn;

Expand Down Expand Up @@ -137,10 +137,10 @@ Repository.prototype.show = function(path) {
return this.svn.show(path);
};

Repository.prototype.commitFiles = function(message, files) {
try {
return await this.svn.commitFiles(message, files);
} catch (error) {
throw new Error("Unable to commit files");
}
Repository.prototype.commitFiles = async function(message, files) {
try {
return await this.svn.commitFiles(message, files);
} catch (error) {
throw new Error("Unable to commit files");
}
};

0 comments on commit b713787

Please sign in to comment.