Skip to content

Commit 502d09a

Browse files
authored
fix: wcrootAbspath can be undefined on older versions of svn (#1170)
1 parent dda71ec commit 502d09a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface ISvnInfo {
3636
uuid: string;
3737
};
3838
wcInfo?: {
39-
wcrootAbspath: string;
39+
wcrootAbspath?: string;
4040
uuid: string;
4141
};
4242
commit: {

src/pathNormalizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class PathNormalizer {
2222
constructor(public readonly repoInfo: ISvnInfo) {
2323
this.repoRoot = Uri.parse(repoInfo.repository.root);
2424
this.branchRoot = Uri.parse(repoInfo.url);
25-
if (repoInfo.wcInfo) {
25+
if (repoInfo.wcInfo && repoInfo.wcInfo.wcrootAbspath) {
2626
this.checkoutRoot = Uri.file(repoInfo.wcInfo.wcrootAbspath);
2727
}
2828
}

0 commit comments

Comments
 (0)