Skip to content

Commit f80bc11

Browse files
authored
Merge pull request SvanBoxel#23 from klinkeklinke/master
Specify safe directory earlier in the code
2 parents deb3490 + 4c2c439 commit f80bc11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ urlencode() (
2121
DEFAULT_POLL_TIMEOUT=10
2222
POLL_TIMEOUT=${POLL_TIMEOUT:-$DEFAULT_POLL_TIMEOUT}
2323

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

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

2930
sh -c "git config --global credential.username $GITLAB_USERNAME"
30-
sh -c "git config --global --add safe.directory /github/workspace"
3131
sh -c "git config --global core.askPass /cred-helper.sh"
3232
sh -c "git config --global credential.helper cache"
3333
sh -c "git remote add mirror $*"

0 commit comments

Comments
 (0)