Skip to content

Commit 4834ffe

Browse files
authored
Merge pull request #33 from eramitmittal/fix_for_commit_problem
Fixing unable to commit problem
2 parents a91456a + 64fa763 commit 4834ffe

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

src/commands.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,21 +139,22 @@ export class SvnCommands {
139139
}
140140
}
141141

142-
async commit(repository: Repository, ...args: any[]) {
143-
const paths = args.map(state => {
144-
return state.resourceUri.fsPath;
145-
});
146-
const message = await inputCommitMessage();
142+
async commit(repository: Repository, ...args: any[][]) {
143+
try {
144+
const paths = args[0].map(state => {
145+
return state.resourceUri.fsPath;
146+
});
147+
const message = await inputCommitMessage();
147148

148-
if (message === undefined) {
149-
return;
150-
}
149+
if (message === undefined) {
150+
return;
151+
}
151152

152-
try {
153153
await repository.repository.commitFiles(message, paths);
154154
changesCommitted();
155155
repository.update();
156156
} catch (error) {
157+
console.log(error);
157158
window.showErrorMessage("Unable to commit");
158159
}
159160
}

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"outDir": "./out",
77
"typeRoots": ["./node_modules/@types"],
88
"strict": true,
9-
"experimentalDecorators": true
9+
"experimentalDecorators": true,
10+
"sourceMap": true
1011
},
1112
"include": ["src/**/*"],
1213
"exclude": ["node_modules"]

0 commit comments

Comments
 (0)