diff options
author | a1012112796 <1012112796@qq.com> | 2021-09-09 04:20:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-08 22:20:55 +0200 |
commit | 358555f72ca03b758283864473601443c41890a5 (patch) | |
tree | 1ab31d7091185604466526828a6d8635ad7d8d55 /services | |
parent | efdbba44538939d6355cceef59fc18c01bb07630 (diff) | |
download | gitea-358555f72ca03b758283864473601443c41890a5.tar.gz gitea-358555f72ca03b758283864473601443c41890a5.zip |
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>
Diffstat (limited to 'services')
-rw-r--r-- | services/agit/agit.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/agit/agit.go b/services/agit/agit.go index 3fca844f91..f32ad371d5 100644 --- a/services/agit/agit.go +++ b/services/agit/agit.go @@ -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", |