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

Don't quote absolute path helper commands #402

Merged
merged 1 commit into from
May 16, 2019

Conversation

hmarr
Copy link
Contributor

@hmarr hmarr commented Feb 19, 2019

Quoting treats the full command as the path to binary, which prevents arguments from being provided.

According to the Git documentation arguments should be accepted. This also matches the behaviour of git itself.

I discovered this issue through Cargo's use of this library.

Quoting treats the full command as the path to binary, which prevents
arguments from being provided.

According to the [Git documentation][git-docs] arguments
should be accepted. This also [matches the behaviour][git-source] of git
itself.

[git-docs]: https://git-scm.com/docs/api-credentials#_credential_helpers
[git-source]: https://github.com/git/git/blob/ca1b4116483b397e78483376296bcd23916ab553/credential.c#L258-L261
@alexcrichton
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants