git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can dependency on /bin/sh be removed?
@ 2024-07-15 18:41 Scott Moser
  2024-07-15 20:18 ` Junio C Hamano
  0 siblings, 1 reply; 12+ messages in thread
From: Scott Moser @ 2024-07-15 18:41 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-07-17  5:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-15 18:41 Can dependency on /bin/sh be removed? Scott Moser
2024-07-15 20:18 ` Junio C Hamano
2024-07-15 21:46   ` brian m. carlson
2024-07-15 23:52   ` Jeff King
2024-07-16 15:23     ` Scott Moser
2024-07-16 16:32       ` Junio C Hamano
2024-07-16 19:23     ` Jeff King
2024-07-16 20:02       ` Junio C Hamano
2024-07-17  5:52         ` Jeff King
2024-07-16 21:30       ` Andreas Schwab
2024-07-16 21:40         ` Paul Smith
2024-07-17  5:53         ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).