mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-10-26 05:04:27 +08:00
I need to rewrite this
This commit is contained in:
@ -351,8 +351,9 @@ func GetDiff(repoPath, commitid string) (*Diff, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ????
|
||||||
if commit.ParentCount() == 0 {
|
if commit.ParentCount() == 0 {
|
||||||
return nil, err
|
return &Diff{}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
rd, wr := io.Pipe()
|
rd, wr := io.Pipe()
|
||||||
|
|||||||
Reference in New Issue
Block a user