diff --git a/CHANGELOG.md b/CHANGELOG.md index 5468aae9..e90e5d7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to ## [unreleased] +### Fixed + +- Configure git config globally instead of locally. + ## [3.0.6] ### Fixed diff --git a/dist/index.js b/dist/index.js index ba373f88..93fb3563 100644 --- a/dist/index.js +++ b/dist/index.js @@ -125807,7 +125807,7 @@ async function setGitToIgnoreCygwinLocalPackageDirectory() { }); } finally { - await (0,lib_exec.exec)("git", ["config", "--add", "--local", "core.excludesfile", globalGitIgnorePath], { windowsVerbatimArguments: true }); + await (0,lib_exec.exec)("git", ["config", "--add", "--global", "core.excludesfile", globalGitIgnorePath], { windowsVerbatimArguments: true }); } } async function setupCygwin() { diff --git a/packages/setup-ocaml/src/windows.ts b/packages/setup-ocaml/src/windows.ts index a04f5089..42444668 100644 --- a/packages/setup-ocaml/src/windows.ts +++ b/packages/setup-ocaml/src/windows.ts @@ -62,7 +62,7 @@ async function setGitToIgnoreCygwinLocalPackageDirectory() { } finally { await exec( "git", - ["config", "--add", "--local", "core.excludesfile", globalGitIgnorePath], + ["config", "--add", "--global", "core.excludesfile", globalGitIgnorePath], { windowsVerbatimArguments: true }, ); }