summaryrefslogtreecommitdiffstats
path: root/models/git_diff.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/git_diff.go')
-rw-r--r--models/git_diff.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/git_diff.go b/models/git_diff.go
index c1568a5759..4cc9ebf8fa 100644
--- a/models/git_diff.go
+++ b/models/git_diff.go
@@ -258,7 +258,7 @@ func GetDiffRange(repoPath, beforeCommitId string, afterCommitId string, maxline
cmd = exec.Command("git", "show", afterCommitId)
} else {
c, _ := commit.Parent(0)
- cmd = exec.Command("git", "diff", "-M", c.Id.String(), afterCommitId)
+ cmd = exec.Command("git", "diff", "-M", c.ID.String(), afterCommitId)
}
} else {
cmd = exec.Command("git", "diff", "-M", beforeCommitId, afterCommitId)