Expand description
Git repository auto-initialisation at pod provisioning time.
Implements the solid_pod_rs::provision::GitInitHook trait
(feature git-auto-init on solid-pod-rs) via
tokio::process::Command.
§Parity
Mirrors JSS src/handlers/git.js tryAutoInitRepo (issues #466,
#469, #471). JSS runs:
git init -b main <pod_path>
git -C <pod_path> config receive.denyCurrentBranch updateInsteadWe do the same. Errors are logged and swallowed so a missing git
binary (or a CF Workers–style environment) does not fail pod
provisioning.
Structs§
- GitAuto
Init - Runs
git init -b <branch>+git config receive.denyCurrentBranch updateInsteadin the pod directory at provisioning time.