Skip to content

Extract GetCustomHooks/SetCustomHooks from repository service

James Fargher requested to merge repoutil_hooks into master

#4940 (closed)

Soon we will be implementing server-side backups which need to be able to archive custom hooks without calling an RPC. This extracts the GetCustomHooks/SetCustomHooks RPC implementations so that it can then be used for backups.

This functionality is not appropriate for localrepo because it is built on top of git and isn't part of git itself. It also doesn't seem like a good fit for "internal/gitaly/hook" because that package is about running hooks rather than managing custom hook scripts.

Edited by James Fargher

Merge request reports