Browse Source

account for empty lines in receive-hook message (#10773) (#10784)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
tags/v1.11.4
zeripath 4 years ago
parent
commit
6ee6731290
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      models/error.go

+ 1
- 1
models/error.go View File

@@ -1407,7 +1407,7 @@ func (err *ErrPushRejected) GenerateMessage() {
}
i += 8
nl := strings.IndexByte(err.StdErr[i:], '\n')
if nl > 0 {
if nl >= 0 {
messageBuilder.WriteString(err.StdErr[i : i+nl+1])
i = i + nl + 1
} else {

Loading…
Cancel
Save