Skip to content
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

Please add support for [includeif "hasconfig:remote.*.url:..."] #1581

Open
ktetzlaff opened this issue Apr 15, 2024 · 0 comments
Open

Please add support for [includeif "hasconfig:remote.*.url:..."] #1581

ktetzlaff opened this issue Apr 15, 2024 · 0 comments

Comments

@ktetzlaff
Copy link

I have moved site specific credential options like

[credential "https://git.example.com"]
        username = ...
	provider = generic

to a separate file which is included in my global git config via [includeif "hasconfig:remote.*.url:https://git.example.com/**"]. Unfortunately, GCM doesn't (seem to) properly handle the hasconfig:remote.*.url: includeif variant and thus doesn't find my credential config. It then decides to add its own:

[credential "https://git.example.com"]
	provider = generic

section to the global git config.

If supporting the includeif mechanism is not possible, please provide an option to stop GCM from automatically updating git config files (I manage my config via chezmoi which detects and complains about the local change made by GCM each time I update my dotfiles).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant