shalzz / zola-deploy-action

Github action for building a Zola site and deploying to Github Pages
MIT License
234 stars 91 forks source link

Still getting "fatal: detected dubious ownership in repository" errors #69

Closed james7132 closed 1 year ago

james7132 commented 1 year ago

I have a submodule that contains the Sass for Bulma under my sass/ directory, which is causing a failure when fetching the contents despite #63's changes.

Here's the log from the run:

 Starting deploy...
Building in . directory
Set safe directories
Fetching themes
Submodule 'sass/bulma' (git@github.com:jgthms/bulma.git) registered for path 'sass/_vendor/bulma'
Cloning into '/github/workspace/sass/_vendor/bulma'...
fatal: detected dubious ownership in repository at '/github/workspace/sass/_vendor/bulma'
To add an exception for this directory, call:

    git config --global --add safe.directory /github/workspace/sass/_vendor/bulma
Unable to fetch in submodule path 'sass/_vendor/bulma'; trying to directly fetch 3e00a8e6d0d0e566d507328f0185ef84854effba:
fatal: detected dubious ownership in repository at '/github/workspace/sass/_vendor/bulma'
To add an exception for this directory, call:

    git config --global --add safe.directory /github/workspace/sass/_vendor/bulma
Fetched in submodule path 'sass/_vendor/bulma', but it did not contain 3e00a8e6d0d0e566d507328f0185ef84854effba. Direct fetching of that commit failed.