diff options
Diffstat (limited to 'vendor/code.gitea.io/git/repo_hook.go')
-rw-r--r-- | vendor/code.gitea.io/git/repo_hook.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/code.gitea.io/git/repo_hook.go b/vendor/code.gitea.io/git/repo_hook.go new file mode 100644 index 0000000000..7b49647e3c --- /dev/null +++ b/vendor/code.gitea.io/git/repo_hook.go @@ -0,0 +1,13 @@ +// Copyright 2015 The Gogs Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package git + +func (repo *Repository) GetHook(name string) (*Hook, error) { + return GetHook(repo.Path, name) +} + +func (repo *Repository) Hooks() ([]*Hook, error) { + return ListHooks(repo.Path) +} |