Skip to content

Commit 0882265

Browse files
GiteaBotwxiaoguang
andauthored
Fix commit file status parser (#30602) (#30606)
Backport #30602 by wxiaoguang Try to fix #30492 Co-authored-by: wxiaoguang <[email protected]>
1 parent 79484e1 commit 0882265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/commit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ func parseCommitFileStatus(fileStatus *CommitFileStatus, stdout io.Reader) {
459459
_, _ = rd.Discard(1)
460460
}
461461
for {
462-
modifier, err := rd.ReadSlice('\x00')
462+
modifier, err := rd.ReadString('\x00')
463463
if err != nil {
464464
if err != io.EOF {
465465
log.Error("Unexpected error whilst reading from git log --name-status. Error: %v", err)

0 commit comments

Comments
 (0)