diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-12-22 17:30:52 +0800 |
---|---|---|
committer | Thomas Boerger <thomas@webhippie.de> | 2016-12-22 10:30:52 +0100 |
commit | 47a7529d9655e11471bbe39958222a13854a6133 (patch) | |
tree | 98e597255245e17d39a0062c3977fb8a510cf413 /routers/repo/webhook.go | |
parent | 0c5c34d7ddaf31a6d8123dac36b221de61f5ff96 (diff) | |
download | gitea-47a7529d9655e11471bbe39958222a13854a6133.tar.gz gitea-47a7529d9655e11471bbe39958222a13854a6133.zip |
update code.gitea.io/git (#450)
Diffstat (limited to 'routers/repo/webhook.go')
-rw-r--r-- | routers/repo/webhook.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/webhook.go b/routers/repo/webhook.go index c3150a02f6..754cf169b8 100644 --- a/routers/repo/webhook.go +++ b/routers/repo/webhook.go @@ -361,7 +361,7 @@ func TestWebhook(ctx *context.Context) { if commit == nil { ghost := models.NewGhostUser() commit = &git.Commit{ - ID: git.MustIDFromString(git.EMPTY_SHA), + ID: git.MustIDFromString(git.EmptySHA), Author: ghost.NewGitSig(), Committer: ghost.NewGitSig(), CommitMessage: "This is a fake commit", @@ -370,7 +370,7 @@ func TestWebhook(ctx *context.Context) { apiUser := ctx.User.APIFormat() p := &api.PushPayload{ - Ref: git.BRANCH_PREFIX + ctx.Repo.Repository.DefaultBranch, + Ref: git.BranchPrefix + ctx.Repo.Repository.DefaultBranch, Before: commit.ID.String(), After: commit.ID.String(), Commits: []*api.PayloadCommit{ |