Skip to content

Commit

Permalink
Merge pull request #4 from kaidokert/main
Browse files Browse the repository at this point in the history
Adding safe-global dir
  • Loading branch information
amadigan authored Nov 21, 2023
2 parents e31978f + e2fa848 commit e5620f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5620f9

Please sign in to comment.