aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/code.gitea.io/git/hook.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-12-22 17:30:52 +0800
committerThomas Boerger <thomas@webhippie.de>2016-12-22 10:30:52 +0100
commit47a7529d9655e11471bbe39958222a13854a6133 (patch)
tree98e597255245e17d39a0062c3977fb8a510cf413 /vendor/code.gitea.io/git/hook.go
parent0c5c34d7ddaf31a6d8123dac36b221de61f5ff96 (diff)
downloadgitea-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.go3
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"
)