Skip to content

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

Description

@ktetzlaff

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions