Summary
Implement runtime-configurable git-receive-pack hook orchestration so GitStore can enable or disable hook phases via environment variables and route admission control to the configured phase.
This wires the following environment variables into executable behavior:
GITSTORE_HOOKS__GIT_RECEIVE_PACK__PRE_RECEIVE__ENABLED
GITSTORE_HOOKS__GIT_RECEIVE_PACK__UPDATE__ENABLED
GITSTORE_HOOKS__GIT_RECEIVE_PACK__POST_RECEIVE__ENABLED
GITSTORE_HOOKS__GIT_RECEIVE_PACK__PROC_RECEIVE__ENABLED
GITSTORE_HOOKS__GIT_RECEIVE_PACK__POST_UPDATE__ENABLED
GITSTORE_ADMISSION_CONTROL__PHASE
Scope
In Scope
- Parse and validate
git-receive-pack hook phase configuration from environment.
- Enable or disable each supported
git-receive-pack hook phase at runtime.
- Route
AdmissionControl execution to the configured phase (default pre-receive).
- Enforce phase compatibility rules, including fail-fast behavior when admission control targets a disabled or unsupported hook phase.
- Emit structured startup logs showing enabled hook phases and the active admission-control phase.
- Add integration tests for phase enable/disable behavior, admission phase routing, and invalid configuration handling.
Out of Scope
Acceptance Criteria
Dependencies
Tracking
Summary
Implement runtime-configurable
git-receive-packhook orchestration so GitStore can enable or disable hook phases via environment variables and route admission control to the configured phase.This wires the following environment variables into executable behavior:
GITSTORE_HOOKS__GIT_RECEIVE_PACK__PRE_RECEIVE__ENABLEDGITSTORE_HOOKS__GIT_RECEIVE_PACK__UPDATE__ENABLEDGITSTORE_HOOKS__GIT_RECEIVE_PACK__POST_RECEIVE__ENABLEDGITSTORE_HOOKS__GIT_RECEIVE_PACK__PROC_RECEIVE__ENABLEDGITSTORE_HOOKS__GIT_RECEIVE_PACK__POST_UPDATE__ENABLEDGITSTORE_ADMISSION_CONTROL__PHASEScope
In Scope
git-receive-packhook phase configuration from environment.git-receive-packhook phase at runtime.AdmissionControlexecution to the configured phase (defaultpre-receive).Out of Scope
git-receive-packhook families.Acceptance Criteria
GITSTORE_HOOKS__GIT_RECEIVE_PACK_*_ENABLEDflags.GITSTORE_ADMISSION_CONTROL__PHASEis parsed and validated at startup.Dependencies
Tracking