mirror of
https://github.com/go-gitea/gitea
synced 2025-07-08 19:47:21 +00:00
update code.gitea.io/git (#450)
This commit is contained in:
committed by
Thomas Boerger
parent
0c5c34d7dd
commit
47a7529d96
2
vendor/code.gitea.io/git/repo_hook.go
generated
vendored
2
vendor/code.gitea.io/git/repo_hook.go
generated
vendored
@ -4,10 +4,12 @@
|
||||
|
||||
package git
|
||||
|
||||
// GetHook get one hook accroding the name on a repository
|
||||
func (repo *Repository) GetHook(name string) (*Hook, error) {
|
||||
return GetHook(repo.Path, name)
|
||||
}
|
||||
|
||||
// Hooks get all the hooks on the repository
|
||||
func (repo *Repository) Hooks() ([]*Hook, error) {
|
||||
return ListHooks(repo.Path)
|
||||
}
|
||||
|
Reference in New Issue
Block a user