Browse Source

Fix commit file status parser (#30602)

Try to fix  #30492
tags/v1.22.0-rc1
wxiaoguang 1 week ago
parent
commit
53cf46cae7
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/git/commit.go

+ 1
- 1
modules/git/commit.go View File

@@ -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…
Cancel
Save