-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set-safe-directory: true
is not sufficient for submodules
#915
Comments
Hmm, this was somehow caused by using a different container than the default ubuntu-latest one. Removing the |
Unfortunately using the default docker container is not an option for all repositories where I need this. How can this be worked around? |
Apparently by calling |
That new git behavior is extra problematic if you happen to also make use of WSL, as it means that you also need to add the unix path as safe directory, not only the default workspace. I think that is might prove more useful to try to avoid having bad file permissions on github runners by default. |
See gtk-rs/gtk-rs-core#760 for an example where this fails.
In this repository there are some submodules that are configured with
update = none
, i.e.git submodule update --init --recursive
is not going to fetch them. For some CI tasks we still want to have them though, so it is necessary to rungit submodule update --checkout
.This does not work and fails as follows:
It's unclear how to work around this as the suggested solution from the error message is clearly already done.
The text was updated successfully, but these errors were encountered: