Skip to content

Don't quote absolute path helper commands#402

Merged
alexcrichton merged 1 commit into
rust-lang:masterfrom
hmarr:master
May 16, 2019
Merged

Don't quote absolute path helper commands#402
alexcrichton merged 1 commit into
rust-lang:masterfrom
hmarr:master

Conversation

@hmarr

@hmarr hmarr commented Feb 19, 2019

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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