diff options
Diffstat (limited to 'vendor/code.gitea.io/git/hook.go')
-rw-r--r-- | vendor/code.gitea.io/git/hook.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/code.gitea.io/git/hook.go b/vendor/code.gitea.io/git/hook.go index 086bf7126d..20da99392a 100644 --- a/vendor/code.gitea.io/git/hook.go +++ b/vendor/code.gitea.io/git/hook.go @@ -102,13 +102,13 @@ func ListHooks(repoPath string) (_ []*Hook, err error) { } const ( - HookPathUpdate = "hooks/update" + HOOK_PATH_UPDATE = "hooks/update" ) // SetUpdateHook writes given content to update hook of the reposiotry. func SetUpdateHook(repoPath, content string) (err error) { log("Setting update hook: %s", repoPath) - hookPath := path.Join(repoPath, HookPathUpdate) + hookPath := path.Join(repoPath, HOOK_PATH_UPDATE) if com.IsExist(hookPath) { err = os.Remove(hookPath) } else { |