-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
safe.directory setting issue #3787
Comments
Hello, @DoveBoy. The per-repository assignment is by design. There is no setting to completely ignore this protection. If you have a list of these repositories, then some automation (such as a shell script) can assist in running these commands. |
I am working on a modification to |
I see a related issue after updating to git version 2.35.2.windows.1. With
I get in a repo outside of the users home on Windows:
I don't expect a warning here as that is my password and not a path component. |
@t-b: thanks for helping here with an additional symptom. That's actually a problem with the config parser that skips the |
If an option to disable this feature entirely is being worked on, please make sure it also disabled the owner check itself, because on a Windows machine, the owner check crashes when running commands in a command prompt (windows) for anything related to WSL :
Running the |
FYI: actions/checkout#760 (comment)
|
It would be nice if the update afterwards could really be set up in this way, without being too overbearing |
The |
@dscho Updated git to the latest version $ git --version --build-options git version 2.35.3.windows.1 Use |
@DoveBoy You do not use an
|
@naine excellent |
On Git Bash the
|
@orgads I saw somewhere else that using the quoted form in CMD resulted in the quotes making it to the config file and so the setting then didn't work. So I would advise to single quote in Git Bash but not in CMD (I'm not sure about PowerShell). |
Yes, I referred to Git Bash. I'll clarify that in my original message. |
Setup
defaults?
to the issue you're seeing?
** insert your response here **
Details
PowerShell7
Minimal, Complete, and Verifiable example
this will help us understand the issue.
The process of
git pull
working properlyURL to that repository to help us with testing?
** insert URL here **
The original repo cannot be manipulated by any
git
related command, and must be forced to setgit config --global --add safe.directory
for each repo in order to work, as we currently know from the2.35.2
update in order to fix a security issue. How to set global trust for all repo in.gitconfig
, instead of having to set it for each repo individually, because there are too many repo's and it's too tedious to set each one.The text was updated successfully, but these errors were encountered: