Commit Graph

4 Commits

Author SHA1 Message Date
Justin Chadwell
90d2d8b1c6 git: allow cloning commit shas not referenced by branch/tag
Signed-off-by: Justin Chadwell <me@jedevc.com>
2024-10-22 11:38:04 +01:00
Justin Chadwell
6493fd064c git: ensure exec option is propagated to child git clis
Signed-off-by: Justin Chadwell <me@jedevc.com>
2024-07-02 22:09:04 -07:00
Stephen Day
035832e0c9 gitutil: preserve error type when wrapping
Signed-off-by: Stephen Day <stephen.day@docker.com>
2024-05-21 16:34:28 -07:00
Justin Chadwell
d34b2471cd git: centralize git cli operations
Move all of the git command line logic into a single object, inspired by
the object already in buildx.

The basic implemenation allows for configuring a git cli for a specific
repository, along with various authorization settings and custom
binaries. Commands can be run for that repository, and a few helpers are
provided for accessing data on it - more to come in the future
hopefully.

Signed-off-by: Justin Chadwell <me@jedevc.com>
2023-08-24 12:22:15 +01:00