Skip to content

Commit

Permalink
Fix commit file status parser (go-gitea#30602)
Browse files Browse the repository at this point in the history
Try to fix  go-gitea#30492
  • Loading branch information
wxiaoguang authored and GiteaBot committed Apr 19, 2024
1 parent 667427b commit fb6060d
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 @@ -459,7 +459,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 fb6060d

Please sign in to comment.