Skip to main content

Module init

Module init 

Source
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 updateInstead

We 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§

GitAutoInit
Runs git init -b <branch> + git config receive.denyCurrentBranch updateInstead in the pod directory at provisioning time.