Skip to content

Commit 358555f

Browse files
authored
Return correct error response for agit force-push (#16989)
fix a samll nit for agit `force-push` error response Signed-off-by: a1012112796 <[email protected]>
1 parent efdbba4 commit 358555f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/agit/agit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ func ProcRecive(ctx *context.PrivateContext, opts *private.HookOptions) []privat
213213
return nil
214214
} else if len(output) > 0 {
215215
results = append(results, private.HookProcReceiveRefResult{
216-
OriginalRef: oldCommitID,
216+
OriginalRef: opts.RefFullNames[i],
217217
OldOID: opts.OldCommitIDs[i],
218218
NewOID: opts.NewCommitIDs[i],
219219
Err: "request `force-push` push option",

0 commit comments

Comments
 (0)