Ver código fonte

Return correct error response for agit force-push (#16989)

fix a samll nit for agit `force-push` error response

Signed-off-by: a101211279 <1012112796@qq.com>
tags/v1.16.0-rc1
a1012112796 2 anos atrás
pai
commit
358555f72c
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      services/agit/agit.go

+ 1
- 1
services/agit/agit.go Ver arquivo

@@ -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",

Carregando…
Cancelar
Salvar