mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-10 08:42:00 +02:00
I need to rewrite this
This commit is contained in:
1 parent
ac3a653442
commit
78979c6d4c
1 file changed
+2
-1
+2
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user