From 47a7529d9655e11471bbe39958222a13854a6133 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 22 Dec 2016 17:30:52 +0800 Subject: update code.gitea.io/git (#450) --- routers/repo/webhook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routers/repo/webhook.go') 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{ -- cgit v1.2.3