소스 검색

Fix commit file status parser (#30602)

Try to fix  #30492
tags/v1.22.0-rc1
wxiaoguang 3 주 전
부모
커밋
53cf46cae7
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      modules/git/commit.go

+ 1
- 1
modules/git/commit.go 파일 보기

@@ -468,7 +468,7 @@ func parseCommitFileStatus(fileStatus *CommitFileStatus, stdout io.Reader) {
_, _ = rd.Discard(1)
}
for {
modifier, err := rd.ReadSlice('\x00')
modifier, err := rd.ReadString('\x00')
if err != nil {
if err != io.EOF {
log.Error("Unexpected error whilst reading from git log --name-status. Error: %v", err)

Loading…
취소
저장