mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-24 00:03:11 -05:00
I need to rewrite this
This commit is contained in:
parent
ac3a653442
commit
78979c6d4c
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue