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

git-config no way to set multivalues #383

Open
nosdod opened this issue May 5, 2022 · 0 comments
Open

git-config no way to set multivalues #383

nosdod opened this issue May 5, 2022 · 0 comments

Comments

@nosdod
Copy link

nosdod commented May 5, 2022

I have an environment where, to access git repos, I need to specify two http.extraHeader values. If I provide them to a git resource as

 git_config:
   - name: http.extraHeader
     value: test
   - name: http.extraHeader
     value: test2

the second configuration overwrites the first, rather than adding it as a second configuration.

What I see in /root/.gitconfig is

[http]
        extraHeader = test2

What I expect to see is

[http]
        extraHeader = test
        extraHeader = test2

git-resource needs to somehow recognise the second configuration as an attempt to set a multi-value and add the --add option to the git config command it runs.

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