Skip to content

Commit

Permalink
Return correct error response for agit force-push (#16989)
Browse files Browse the repository at this point in the history
fix a samll nit for agit `force-push` error response

Signed-off-by: a1012112796 <1012112796@qq.com>
  • Loading branch information
a1012112796 authored Sep 8, 2021
1 parent efdbba4 commit 358555f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/agit/agit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 358555f

Please sign in to comment.