0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-29 15:18:25 +01:00

Return correct error response for agit force-push (#16989)

fix a samll nit for agit `force-push` error response

Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
a1012112796 2021-09-09 04:20:55 +08:00 committed by GitHub
parent efdbba4453
commit 358555f72c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,7 +213,7 @@ func ProcRecive(ctx *context.PrivateContext, opts *private.HookOptions) []privat
return nil return nil
} else if len(output) > 0 { } else if len(output) > 0 {
results = append(results, private.HookProcReceiveRefResult{ results = append(results, private.HookProcReceiveRefResult{
OriginalRef: oldCommitID, OriginalRef: opts.RefFullNames[i],
OldOID: opts.OldCommitIDs[i], OldOID: opts.OldCommitIDs[i],
NewOID: opts.NewCommitIDs[i], NewOID: opts.NewCommitIDs[i],
Err: "request `force-push` push option", Err: "request `force-push` push option",