From e2fa84878fa4947dfef239063c795b279e6605f6 Mon Sep 17 00:00:00 2001 From: Kert Date: Fri, 16 Sep 2022 21:30:29 -0700 Subject: [PATCH] Adding safe-global dir --- action.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/action.sh b/action.sh index a9f675b..806a90e 100755 --- a/action.sh +++ b/action.sh @@ -7,6 +7,7 @@ if [ -z "${REMOTE}" ]; then exit 1 fi +git config --global --add safe.directory /github/workspace git clone --bare "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" . || exit 1 git remote add --mirror=fetch mirror "${REMOTE}" || exit 1 git fetch mirror +refs/heads/*:refs/remotes/origin/* || exit 1