git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Can dependency on /bin/sh be removed?

From
SMScott 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
Next: Junio C Hamano
Message 1 of 12 in “Can dependency on /bin/sh be removed?”
  1. Scott MoserJul 15, 2024
  2. Junio C HamanoJul 15, 2024
  3. brian m. carlsonJul 15, 2024
  4. Jeff KingJul 15, 2024
  5. Scott MoserJul 16, 2024
  6. Junio C HamanoJul 16, 2024
  7. Jeff KingJul 16, 2024
  8. Junio C HamanoJul 16, 2024
  9. Jeff KingJul 17, 2024
  10. Andreas SchwabJul 16, 2024
  11. Paul SmithJul 16, 2024
  12. Jeff KingJul 17, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.