Browse Source
account for empty lines in receive-hook message (#10773)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
tags/v1.21.12.1
zeripath
GitHub
5 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
models/error.go
|
|
|
@@ -1423,7 +1423,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 { |
|
|
|
|