mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 23:03:34 +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:
parent
efdbba4453
commit
358555f72c
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ func ProcRecive(ctx *context.PrivateContext, opts *private.HookOptions) []privat
|
|||
return nil
|
||||
} else if len(output) > 0 {
|
||||
results = append(results, private.HookProcReceiveRefResult{
|
||||
OriginalRef: oldCommitID,
|
||||
OriginalRef: opts.RefFullNames[i],
|
||||
OldOID: opts.OldCommitIDs[i],
|
||||
NewOID: opts.NewCommitIDs[i],
|
||||
Err: "request `force-push` push option",
|
||||
|
|
Loading…
Reference in a new issue