Skip to content

Commit

Permalink
Fix commit file status parser (#30602)
Browse files Browse the repository at this point in the history
Try to fix  #30492
  • Loading branch information
wxiaoguang committed Apr 19, 2024
1 parent f60e1a1 commit 53cf46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/git/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 53cf46c

Please sign in to comment.