Skip to content

Commit b713787

Browse files
committed
fixed no changes showing
1 parent 3ddb85f commit b713787

File tree

4 files changed

+19
-12
lines changed

4 files changed

+19
-12
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
**v0.8.9**
22
=============================================
33

4+
## Bug Fixes
5+
- Using the source control commit box should only commit changes listed
6+
- Re-fixed no changes showing.
7+
8+
**v0.8.9**
9+
=============================================
10+
411
## Bug Fixes
512
- Fixed Missing icons
613
- Fixed all changes showing as untracked

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "svn-scm",
33
"displayName": "SVN",
44
"description": "Integrated Subversion source control",
5-
"version": "0.8.9",
5+
"version": "0.8.10",
66
"publisher": "johnstoncode",
77
"engines": {
88
"vscode": "^1.16.0"

src/repository.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Repository.prototype.provideOriginalResource = uri => {
4848
Repository.prototype.update = async function() {
4949
let changes = [];
5050
let notTracked = [];
51-
let statuses = (await this.repository.getStatus()) || [];
51+
let statuses = (await this.repository.getStatus().catch(() => {})) || [];
5252

5353
statuses.forEach(status => {
5454
switch (status[0]) {

src/svn.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ svn.prototype.list = async function(filePath) {
8686
};
8787

8888
svn.prototype.commitFiles = function(message, files) {
89-
files = files.join(' ');
90-
91-
return this.exec("", ["commit", "-m", message, files]);
92-
}
89+
files = files.join(" ");
90+
91+
return this.exec("", ["commit", "-m", message, files]);
92+
};
9393

9494
module.exports = svn;
9595

@@ -137,10 +137,10 @@ Repository.prototype.show = function(path) {
137137
return this.svn.show(path);
138138
};
139139

140-
Repository.prototype.commitFiles = function(message, files) {
141-
try {
142-
return await this.svn.commitFiles(message, files);
143-
} catch (error) {
144-
throw new Error("Unable to commit files");
145-
}
140+
Repository.prototype.commitFiles = async function(message, files) {
141+
try {
142+
return await this.svn.commitFiles(message, files);
143+
} catch (error) {
144+
throw new Error("Unable to commit files");
145+
}
146146
};

0 commit comments

Comments
 (0)