@@ -1253,7 +1253,7 @@ func (s *WorktreeSuite) TestResetHardSubFolders(c *C) {
1253
1253
1254
1254
err = fs .MkdirAll ("dir" , os .ModePerm )
1255
1255
c .Assert (err , IsNil )
1256
- tf , err := fs .Create ("dir/testfile.txt" )
1256
+ tf , err := fs .Create ("./ dir/testfile.txt" )
1257
1257
c .Assert (err , IsNil )
1258
1258
_ , err = tf .Write ([]byte ("testfile content" ))
1259
1259
c .Assert (err , IsNil )
@@ -3196,7 +3196,7 @@ func (s *WorktreeSuite) TestRestoreStaged(c *C) {
3196
3196
c .Assert (err , Equals , ErrNoRestorePaths )
3197
3197
3198
3198
// 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 ]}
3200
3200
err = w .Restore (& opts )
3201
3201
c .Assert (err , IsNil )
3202
3202
verifyStatus (c , "Restored First" , w , names , []FileStatus {
@@ -3211,7 +3211,7 @@ func (s *WorktreeSuite) TestRestoreStaged(c *C) {
3211
3211
c .Assert (err , IsNil )
3212
3212
c .Assert (string (contents ), Equals , "Foo Bar:11" )
3213
3213
3214
- opts .Files = []string {names [2 ], names [3 ]}
3214
+ opts .Files = []string {"./" + names [2 ], names [3 ]}
3215
3215
err = w .Restore (& opts )
3216
3216
c .Assert (err , IsNil )
3217
3217
verifyStatus (c , "Restored Second" , w , names , []FileStatus {
0 commit comments