diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-12-22 17:30:52 +0800 |
---|---|---|
committer | Thomas Boerger <thomas@webhippie.de> | 2016-12-22 10:30:52 +0100 |
commit | 47a7529d9655e11471bbe39958222a13854a6133 (patch) | |
tree | 98e597255245e17d39a0062c3977fb8a510cf413 /vendor/code.gitea.io/git/hook.go | |
parent | 0c5c34d7ddaf31a6d8123dac36b221de61f5ff96 (diff) | |
download | gitea-47a7529d9655e11471bbe39958222a13854a6133.tar.gz gitea-47a7529d9655e11471bbe39958222a13854a6133.zip |
update code.gitea.io/git (#450)
Diffstat (limited to 'vendor/code.gitea.io/git/hook.go')
-rw-r--r-- | vendor/code.gitea.io/git/hook.go | 3 |
1 files changed, 3 insertions, 0 deletions
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" ) |