Skip to content

Commit c9998b1

Browse files
committed
Fixed file name with "@" (Close #223)
1 parent 3d3012b commit c9998b1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/svnRepository.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,14 @@ export class Repository {
3535
removeAbsolutePath(file: string) {
3636
file = fixPathSeparator(file);
3737

38-
return path.relative(this.workspaceRoot, file);
38+
file = path.relative(this.workspaceRoot, file);
39+
40+
// Fix Peg Revision Algorithm (http://svnbook.red-bean.com/en/1.8/svn.advanced.pegrevs.html)
41+
if (/@/.test(file)) {
42+
file += "@";
43+
}
44+
45+
return file;
3946
}
4047

4148
async getStatus(

0 commit comments

Comments
 (0)