From a5c8fa611ae459e0524dc085f4bc926e8f03d20c Mon Sep 17 00:00:00 2001 From: David Allsopp Date: Sun, 17 Apr 2022 08:59:10 +0100 Subject: [PATCH] Turn off directory ownership check --- dist/index.js | 1 + src/setup-ocaml/opam.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/index.js b/dist/index.js index 2ba457d3..18b1fb8b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -109641,6 +109641,7 @@ function acquireOpamWindows() { } function initializeOpamWindows() { return opam_awaiter(this, void 0, void 0, function* () { + yield (0,lib_exec.exec)("git", ["config", "--global", "--add", "safe.directory", "'*'"]); yield (0,lib_exec.exec)("opam", [ "init", "--auto-setup", diff --git a/src/setup-ocaml/opam.ts b/src/setup-ocaml/opam.ts index 768c96ef..90f1d0eb 100644 --- a/src/setup-ocaml/opam.ts +++ b/src/setup-ocaml/opam.ts @@ -231,6 +231,7 @@ async function acquireOpamWindows() { } async function initializeOpamWindows() { + await exec("git", ["config", "--global", "--add", "safe.directory", "'*'"]); await exec("opam", [ "init", "--auto-setup",