Skip to content

git: Refactor pack-objects hook configuration

Patrick Steinhardt requested to merge pks-hooks-payload-git-binary-path into master

This is a small refactoring MR the recently-added pack-objects hook configuration:

  • The git binary path is now injected via the HooksPayload.
  • We use configureHooks(), which buys us protection from overriding the payload by accident.
  • I've added additional testcases to verify the pack-objects hook configuration works as expected.
  • The uploadpack.packObjectsHook is now injected in WithPackObjectsHookEnv().

Merge request reports