Skip to content

Commit 017e990

Browse files
authored
Merge pull request #274 from JohnstonCode/fix-for-255
fixes #255
2 parents 7f3b9fa + 98e5356 commit 017e990

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/svnRepository.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ export class Repository {
187187
return info.repository.root;
188188
}
189189

190-
return info.url.replace(branch.path, "").replace(/\/$/, "");
190+
let regex = new RegExp(branch.path + "$");
191+
192+
return info.url.replace(regex, "").replace(/\/$/, "");
191193
}
192194

193195
async getBranches() {

0 commit comments

Comments
 (0)