On 2024-07-15 at 20:18:52, Junio C Hamano wrote: > Having said that, I do not think you can avoid /bin/sh if your goal > is "minimal image *to run git*", as there are many things we run, > starting from the editor and the pager and end-user hooks. The > credential helper is probably the least of your problems. What's a > minimum /bin/dash image cost these days? Debian provides busybox-static, a statically linked, multi-call busybox binary including sh, other POSIX utilities, and quite a lot of other features, all in a 1.9 MiB binary. If you don't need, say, httpd or dpkg emulation, you can build a much more stripped down version for less disk usage. Alpine Linux is based off of busybox (dynamically linked at 808 KiB), so we can assume that that configuration works just fine. We know that Git for Windows also ships a configuration using busybox successfully (although with a much larger size). I am very interested to know what kind of restricted environment needs Git (especially with a credential helper) but doesn't ship with a POSIX sh. I suppose a restricted Windows environment could qualify. -- brian m. carlson (they/them or he/him) Toronto, Ontario, CA
Attachment:
signature.asc
Description: PGP signature