Fix commit file status parser (#30602)
Try to fix #30492 (cherry picked from commit 53cf46cae7475befa2dde554bbd9147e436072b9)
This commit is contained in:
parent
3330b4d5d8
commit
27434acef6
|
@ -462,7 +462,7 @@ func parseCommitFileStatus(fileStatus *CommitFileStatus, stdout io.Reader) {
|
||||||
_, _ = rd.Discard(1)
|
_, _ = rd.Discard(1)
|
||||||
}
|
}
|
||||||
for {
|
for {
|
||||||
modifier, err := rd.ReadSlice('\x00')
|
modifier, err := rd.ReadString('\x00')
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err != io.EOF {
|
if err != io.EOF {
|
||||||
log.Error("Unexpected error whilst reading from git log --name-status. Error: %v", err)
|
log.Error("Unexpected error whilst reading from git log --name-status. Error: %v", err)
|
||||||
|
|
Loading…
Reference in New Issue