summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routers/web/repo/compare.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/repo/compare.go b/routers/web/repo/compare.go
index cddbdf82b1..2afc432e35 100644
--- a/routers/web/repo/compare.go
+++ b/routers/web/repo/compare.go
@@ -722,7 +722,7 @@ func CompareDiff(ctx *context.Context) {
}
if ctx.Data["ComparingDiff"].(bool) {
- err := git.GetRepoRawDiffForFile(ci.HeadGitRepo, ci.BaseBranch, ci.HeadBranch,git.RawDiffNormal,"", ctx.Resp)
+ err := git.GetRepoRawDiffForFile(ci.HeadGitRepo, ci.BaseBranch, ci.HeadBranch,git.RawDiffNormal, "", ctx.Resp)
if err != nil {
ctx.ServerError("ComparingDiff", err)
return
@@ -730,7 +730,7 @@ func CompareDiff(ctx *context.Context) {
}
if ctx.Data["ComparingPatch"].(bool) {
- err := git.GetRepoRawDiffForFile(ci.HeadGitRepo, ci.BaseBranch, ci.HeadBranch,git.RawDiffPatch,"", ctx.Resp)
+ err := git.GetRepoRawDiffForFile(ci.HeadGitRepo, ci.BaseBranch, ci.HeadBranch,git.RawDiffPatch, "", ctx.Resp)
if err != nil {
ctx.ServerError("ComparingPatch", err)
return