From 47a7529d9655e11471bbe39958222a13854a6133 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 22 Dec 2016 17:30:52 +0800 Subject: update code.gitea.io/git (#450) --- vendor/code.gitea.io/git/hook.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vendor/code.gitea.io/git/hook.go') diff --git a/vendor/code.gitea.io/git/hook.go b/vendor/code.gitea.io/git/hook.go index 086bf7126d..d8069b6b82 100644 --- a/vendor/code.gitea.io/git/hook.go +++ b/vendor/code.gitea.io/git/hook.go @@ -22,6 +22,7 @@ var hookNames = []string{ } var ( + // ErrNotValidHook error when a git hook is not valid ErrNotValidHook = errors.New("not a valid Git hook") ) @@ -70,6 +71,7 @@ func GetHook(repoPath, name string) (*Hook, error) { return h, nil } +// Name return the name of the hook func (h *Hook) Name() string { return h.name } @@ -102,6 +104,7 @@ func ListHooks(repoPath string) (_ []*Hook, err error) { } const ( + // HookPathUpdate hook update path HookPathUpdate = "hooks/update" ) -- cgit v1.2.3