Browse Source

I need to rewrite this

pull/40/head
Unknown 11 years ago
parent
commit
78979c6d4c
  1. 3
      models/git.go

3
models/git.go

@ -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…
Cancel
Save