diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..2a826ba --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +# Default code owners for the repository +* @athal7 diff --git a/test/unit/git-worktree.test.js b/test/unit/git-worktree.test.js index be1c6e5..d903df1 100644 --- a/test/unit/git-worktree.test.js +++ b/test/unit/git-worktree.test.js @@ -75,8 +75,7 @@ describe('isWorktree', () => { execSync('git commit -m "sub commit"', { cwd: subRepo }) // Add submodule to main repo - execSync('git config --global protocol.file.allow always', { cwd: mainRepo }) - execSync(`git submodule add ${subRepo} sub`, { cwd: mainRepo }) + execSync(`git -c protocol.file.allow=always submodule add ${subRepo} sub`, { cwd: mainRepo }) execSync('git commit -m "add submodule"', { cwd: mainRepo }) const result = await isWorktree(submodulePath)