Skip to content

Commit

Permalink
Merge pull request #23 from klinkeklinke/master
Browse files Browse the repository at this point in the history
Specify safe directory earlier in the code
  • Loading branch information
SvanBoxel authored Sep 21, 2023
2 parents deb3490 + 4c2c439 commit f80bc11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ urlencode() (
DEFAULT_POLL_TIMEOUT=10
POLL_TIMEOUT=${POLL_TIMEOUT:-$DEFAULT_POLL_TIMEOUT}

sh -c "git config --global --add safe.directory /github/workspace"
git checkout "${GITHUB_REF:11}"

branch="$(git symbolic-ref --short HEAD)"
branch_uri="$(urlencode ${branch})"

sh -c "git config --global credential.username $GITLAB_USERNAME"
sh -c "git config --global --add safe.directory /github/workspace"
sh -c "git config --global core.askPass /cred-helper.sh"
sh -c "git config --global credential.helper cache"
sh -c "git remote add mirror $*"
Expand Down

0 comments on commit f80bc11

Please sign in to comment.