Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! test: run cd dir && git init && cd - instead of `git init -C…
… dir`

Signed-off-by: Darshan Sen <[email protected]>
  • Loading branch information
RaisinTen committed Mar 26, 2022
commit bc950fa017555d26da8c8a4257a64ee17ffbe072
5 changes: 1 addition & 4 deletions test/parallel/test-fs-rm.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ const isGitPresent = (() => {
})();

function gitInit(gitDirectory) {
const cwd = process.cwd();
fs.mkdirSync(gitDirectory);
process.chdir(gitDirectory);
execSync('git init');
process.chdir(cwd);
execSync('git init', { cwd: gitDirectory });
}

function makeNonEmptyDirectory(depth, files, folders, dirname, createSymLinks) {
Expand Down