Skip to content

Commit 53cf46c

Browse files
authored
Fix commit file status parser (#30602)
Try to fix #30492
1 parent f60e1a1 commit 53cf46c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ func parseCommitFileStatus(fileStatus *CommitFileStatus, stdout io.Reader) {
468468
_, _ = rd.Discard(1)
469469
}
470470
for {
471-
modifier, err := rd.ReadSlice('\x00')
471+
modifier, err := rd.ReadString('\x00')
472472
if err != nil {
473473
if err != io.EOF {
474474
log.Error("Unexpected error whilst reading from git log --name-status. Error: %v", err)

0 commit comments

Comments
 (0)