mirror of
https://gitee.com/gitea/gitea.git
synced 2024-11-30 10:47:40 +08:00
I need to rewrite this
This commit is contained in:
parent
ac3a653442
commit
78979c6d4c
@ -351,8 +351,9 @@ func GetDiff(repoPath, commitid string) (*Diff, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// ????
|
||||
if commit.ParentCount() == 0 {
|
||||
return nil, err
|
||||
return &Diff{}, err
|
||||
}
|
||||
|
||||
rd, wr := io.Pipe()
|
||||
|
Loading…
Reference in New Issue
Block a user