Can dependency on /bin/sh be removed?

From: Scott Moser <hidden>
Date: 2024-07-15 18:41:57

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help