@@ -1253,7 +1253,7 @@ func (s *WorktreeSuite) TestResetHardSubFolders(c *C) {
12531253
12541254 err = fs .MkdirAll ("dir" , os .ModePerm )
12551255 c .Assert (err , IsNil )
1256- tf , err := fs .Create ("dir/testfile.txt" )
1256+ tf , err := fs .Create ("./ dir/testfile.txt" )
12571257 c .Assert (err , IsNil )
12581258 _ , err = tf .Write ([]byte ("testfile content" ))
12591259 c .Assert (err , IsNil )
@@ -3196,7 +3196,7 @@ func (s *WorktreeSuite) TestRestoreStaged(c *C) {
31963196 c .Assert (err , Equals , ErrNoRestorePaths )
31973197
31983198 // Restore Staged files in 2 groups and confirm status
3199- opts .Files = []string {names [0 ], names [1 ]}
3199+ opts .Files = []string {names [0 ], "./" + names [1 ]}
32003200 err = w .Restore (& opts )
32013201 c .Assert (err , IsNil )
32023202 verifyStatus (c , "Restored First" , w , names , []FileStatus {
@@ -3211,7 +3211,7 @@ func (s *WorktreeSuite) TestRestoreStaged(c *C) {
32113211 c .Assert (err , IsNil )
32123212 c .Assert (string (contents ), Equals , "Foo Bar:11" )
32133213
3214- opts .Files = []string {names [2 ], names [3 ]}
3214+ opts .Files = []string {"./" + names [2 ], names [3 ]}
32153215 err = w .Restore (& opts )
32163216 c .Assert (err , IsNil )
32173217 verifyStatus (c , "Restored Second" , w , names , []FileStatus {
0 commit comments