Skip to content

Commit

Permalink
Merge pull request #5 from wandansible/git-safe-dir
Browse files Browse the repository at this point in the history
Set git safe.directory in entrypoint.sh.
  • Loading branch information
gizmoguy authored Apr 8, 2023
2 parents f6277cf + 128329c commit a63ec6e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ RUN apt-get update && \
jq \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& git config --global --add safe.directory '*' \
&& python3 -m venv /opt/venv \
&& /opt/venv/bin/pip --no-cache-dir --no-input install --upgrade --requirement /requirements.txt

Expand Down
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ else
GITHUB_SHA="$(jq -r .pull_request.head.sha < "${GITHUB_EVENT_PATH}")"
fi

git config --global --add safe.directory "${GITHUB_WORKSPACE}"
git checkout --quiet "${DEFAULT_BRANCH}"
git checkout --quiet "${GITHUB_SHA}"

Expand Down

0 comments on commit a63ec6e

Please sign in to comment.