Skip to content

Commit

Permalink
Use the newly introduced safe.directory wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored Apr 20, 2022
1 parent 73fd0e2 commit 6365379
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cml.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ class CML {
userEmail = GIT_USER_EMAIL,
userName = GIT_USER_NAME
} = opts;
await exec('git config --global --add safe.directory "$PWD"');
await exec("git config --global --add safe.directory '*'");

const driver = getDriver(this);
await exec(await driver.updateGitConfig({ userName, userEmail }));
Expand All @@ -344,7 +346,6 @@ class CML {
}
}
await exec('git fetch --all');
await exec('git config --global --add safe.directory "$PWD"');
}

async prCreate(opts = {}) {
Expand Down

0 comments on commit 6365379

Please sign in to comment.