This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
I need to rewrite this
tags/v1.2.0-rc1
Unknown
11 years ago
parent
ac3a653442
commit
78979c6d4c
1 changed files
with
2 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
models/git.go
+ 2
- 1
models/git.go
View File
@@ -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()
Write
Preview
Loading…
Cancel
Save