Documentation ¶
Index ¶
Constants ¶
View Source
const ( PreReceiveHook = "pre-receive" UpdateHook = "update" PostReceiveHook = "post-receive" PostUpdateHook = "post-update" )
The names of git server-side hooks.
Variables ¶
This section is empty.
Functions ¶
func GenerateHooks ¶
GenerateHooks generates git server-side hooks for a repository. Currently, it supports the following hooks: - pre-receive - update - post-receive - post-update
This function should be called by the backend when a repository is created. TODO: support context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.