Skip to content

Commit 775031d

Browse files
committed
Fixed diff changes on UNC path (Close #111)
1 parent bbef1b1 commit 775031d

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/repository.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,9 @@ export class Repository {
191191
return;
192192
}
193193

194-
notTracked.push(
195-
new Resource(uri, status.status, renameUri)
196-
);
194+
notTracked.push(new Resource(uri, status.status, renameUri));
197195
} else {
198-
changes.push(
199-
new Resource(uri, status.status, renameUri)
200-
);
196+
changes.push(new Resource(uri, status.status, renameUri));
201197
}
202198
});
203199

@@ -220,7 +216,9 @@ export class Repository {
220216
}
221217

222218
show(filePath: string, revision?: string): Promise<string> {
223-
return this.repository.show(filePath, revision);
219+
return this.repository.show(filePath, revision, {
220+
cwd: this.workspaceRoot
221+
});
224222
}
225223

226224
addFile(filePath: string) {

src/svnContentProvider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ export class SvnContentProvider implements TextDocumentContentProvider {
107107
}
108108

109109
try {
110-
return await repository.show(uri.fsPath, revision);
110+
const { path } = fromSvnUri(uri);
111+
return await repository.show(path, revision);
111112
} catch (error) {
112113
return "";
113114
}

0 commit comments

Comments
 (0)