mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: John Olheiser <[email protected]> Co-authored-by: Lauris BH <[email protected]>
This commit is contained in:
co-authored by
GitHub
Lunny Xiao
John Olheiser
Lauris BH
parent
602fe45936
commit
6ee6731290
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user