aboutsummaryrefslogtreecommitdiffstats
path: root/modules/private
diff options
context:
space:
mode:
Diffstat (limited to 'modules/private')
-rw-r--r--modules/private/hook.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/private/hook.go b/modules/private/hook.go
index c0fe9ef1fb..23e03896e4 100644
--- a/modules/private/hook.go
+++ b/modules/private/hook.go
@@ -10,6 +10,7 @@ import (
"strconv"
"time"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/setting"
)
@@ -44,7 +45,7 @@ func (g GitPushOptions) Bool(key string, def bool) bool {
type HookOptions struct {
OldCommitIDs []string
NewCommitIDs []string
- RefFullNames []string
+ RefFullNames []git.RefName
UserID int64
UserName string
GitObjectDirectory string
@@ -89,7 +90,7 @@ type HookProcReceiveRefResult struct {
OldOID string
NewOID string
Ref string
- OriginalRef string
+ OriginalRef git.RefName
IsForcePush bool
IsNotMatched bool
Err string