Can dependency on /bin/sh be removed?
- From
- Scott Moser <scott.moser@chainguard.dev>
- Date
- Jul 15, 2024, 18:41 UTC
- Message-ID
- <CADaTQqDZ_6wORXOFc2CE90aizgHJ116NDHZhNeY4Nx7NH8DHJw@mail.gmail.com>
Hi,
I'm looking at putting together minimal images to run git. In order to make gitcredentials to work (git config credential.helper) the image needs a /bin/sh.
I realize there are many workflows that are going to need a shell, but it does not seem like it should be required in order to handle a gitconfig like:
[credential-helper] helper = /bin/myhelper
In that case, the shell is only being used to tokenize 'myhelper get'.
Is there a solution that I'm missing here?
Would upstream be open to some modifier on the helper value that would indicate "do not pass to shell" ? Like a '@' to indicate "direct invoke" rather than letting shell handle?
[credential-helper] helper = @/bin/myhelper
Scott