From 78979c6d4c1408910cf12546b26d727752c62250 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 26 Mar 2014 06:43:58 -0400 Subject: [PATCH] I need to rewrite this --- models/git.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/git.go b/models/git.go index 0f41a922c1..ce4434ca5f 100644 --- a/models/git.go +++ b/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()