summaryrefslogtreecommitdiffstats
path: root/services/agit/agit.go
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2021-09-09 04:20:55 +0800
committerGitHub <noreply@github.com>2021-09-08 22:20:55 +0200
commit358555f72ca03b758283864473601443c41890a5 (patch)
tree1ab31d7091185604466526828a6d8635ad7d8d55 /services/agit/agit.go
parentefdbba44538939d6355cceef59fc18c01bb07630 (diff)
downloadgitea-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/agit/agit.go')
-rw-r--r--services/agit/agit.go2
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",