Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Commit

Permalink
test: force removing src directory after 1st step
Browse files Browse the repository at this point in the history
When a test directory contained a `v0/.DS_Store` file,
`git rm -r src` didn't remove the directory and the follow-up
`cp -r` placed the files in `src/v1`.
  • Loading branch information
amtrack committed May 12, 2020
1 parent ea74ef4 commit 5531c8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test-functional/lib/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class Repository {
}

rm(folder = 'src') {
return this._execute('git', ['rm', '-r', folder]);
this._execute('git', ['rm', '-r', folder]);
return this._execute('rm', ['-r', '-f', folder]);
}

commit(message = 'no message') {
Expand All @@ -51,4 +52,4 @@ class Repository {
}
}

module.exports = new Repository();
module.exports = new Repository();

0 comments on commit 5531c8c

Please sign in to comment.