@@ -220,7 +220,7 @@ public void CanAddWorktree()
220
220
Assert . Equal ( 2 , repo . Worktrees . Count ( ) ) ;
221
221
222
222
var name = "blah" ;
223
- var path = Path . Combine ( repo . Info . WorkingDirectory , @ "..\ worktrees", name ) ;
223
+ var path = Path . Combine ( repo . Info . WorkingDirectory , ".." , " worktrees", name ) ;
224
224
var worktree = repo . Worktrees . Add ( name , path , false ) ;
225
225
Assert . Equal ( name , worktree . Name ) ;
226
226
Assert . False ( worktree . IsLocked ) ;
@@ -238,7 +238,7 @@ public void CanAddLockedWorktree()
238
238
Assert . Equal ( 2 , repo . Worktrees . Count ( ) ) ;
239
239
240
240
var name = "blah" ;
241
- var path = Path . Combine ( repo . Info . WorkingDirectory , @ "..\ worktrees", name ) ;
241
+ var path = Path . Combine ( repo . Info . WorkingDirectory , ".." , " worktrees", name ) ;
242
242
var worktree = repo . Worktrees . Add ( name , path , true ) ;
243
243
Assert . Equal ( name , worktree . Name ) ;
244
244
Assert . True ( worktree . IsLocked ) ;
@@ -257,7 +257,7 @@ public void CanAddWorktreeForCommittish()
257
257
258
258
var name = "blah" ;
259
259
var committish = "diff-test-cases" ;
260
- var path = Path . Combine ( repo . Info . WorkingDirectory , @ "..\ worktrees", name ) ;
260
+ var path = Path . Combine ( repo . Info . WorkingDirectory , ".." , " worktrees", name ) ;
261
261
var worktree = repo . Worktrees . Add ( committish , name , path , false ) ;
262
262
Assert . Equal ( name , worktree . Name ) ;
263
263
Assert . False ( worktree . IsLocked ) ;
0 commit comments