@@ -220,7 +220,7 @@ public void CanAddWorktree()
220220 Assert . Equal ( 2 , repo . Worktrees . Count ( ) ) ;
221221
222222 var name = "blah" ;
223- var path = Path . Combine ( repo . Info . WorkingDirectory , @ "..\ worktrees", name ) ;
223+ var path = Path . Combine ( repo . Info . WorkingDirectory , ".." , " worktrees", name ) ;
224224 var worktree = repo . Worktrees . Add ( name , path , false ) ;
225225 Assert . Equal ( name , worktree . Name ) ;
226226 Assert . False ( worktree . IsLocked ) ;
@@ -238,7 +238,7 @@ public void CanAddLockedWorktree()
238238 Assert . Equal ( 2 , repo . Worktrees . Count ( ) ) ;
239239
240240 var name = "blah" ;
241- var path = Path . Combine ( repo . Info . WorkingDirectory , @ "..\ worktrees", name ) ;
241+ var path = Path . Combine ( repo . Info . WorkingDirectory , ".." , " worktrees", name ) ;
242242 var worktree = repo . Worktrees . Add ( name , path , true ) ;
243243 Assert . Equal ( name , worktree . Name ) ;
244244 Assert . True ( worktree . IsLocked ) ;
@@ -257,7 +257,7 @@ public void CanAddWorktreeForCommittish()
257257
258258 var name = "blah" ;
259259 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 ) ;
261261 var worktree = repo . Worktrees . Add ( committish , name , path , false ) ;
262262 Assert . Equal ( name , worktree . Name ) ;
263263 Assert . False ( worktree . IsLocked ) ;
0 commit comments