mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
GHA: Fix ownership of repo in container
Avoid: > fatal: detected dubious ownership in repository at '/__w/turtle/turtle' by adding that path to the git `safe.path`. This is caused by the command(s) running inside the container but the folder being created outside the container so the owner inside the container is not what is expected by git.
This commit is contained in:
parent
20dafe08a6
commit
d7c80fbf28
1 changed files with 1 additions and 0 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
|
@ -75,6 +75,7 @@ jobs:
|
|||
apt-get -o Acquire::Retries=$NET_RETRY_COUNT update
|
||||
apt-get -o Acquire::Retries=$NET_RETRY_COUNT install -y g++ git cmake
|
||||
git config --global pack.threads 0
|
||||
git config --global --add safe.directory "$GITHUB_WORKSPACE" # Avoid ownership issues of repo in container
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue