Skip to content

Commit 18dd87d

Browse files
committed
gogs/gogs#3007 only list server side Git hooks
1 parent 53bcb73 commit 18dd87d

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"time"
1111
)
1212

13-
const _VERSION = "0.3.3"
13+
const _VERSION = "0.3.4"
1414

1515
func Version() string {
1616
return _VERSION

hook.go

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,11 @@ import (
1414
"github.com/Unknwon/com"
1515
)
1616

17-
// hookNames is a list of Git hooks' name that are supported.
17+
// hookNames is a list of Git server hooks' name that are supported.
1818
var hookNames = []string{
19-
"applypatch-msg",
20-
"pre-applypatch",
21-
"post-applypatch",
22-
"pre-commit",
23-
"prepare-commit-msg",
24-
"commit-msg",
25-
"post-commit",
26-
"pre-rebase",
27-
"post-checkout",
28-
"post-merge",
29-
"pre-push",
3019
"pre-receive",
3120
// "update",
3221
"post-receive",
33-
"post-update",
34-
"push-to-checkout",
35-
"pre-auto-gc",
36-
"post-rewrite",
3722
}
3823

3924
var (

0 commit comments

Comments
 (0)