summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-01-28 16:02:03 +0800
committerzeripath <art27@cantab.net>2020-01-28 08:02:03 +0000
commite8860ef4f9fe84aac856e354a897734aac7c279b (patch)
tree09b7248b5115972f0f1e8be9f5b9dcdc7d7f8d72 /routers
parent1019913eaba0e8ad3a67174a1a13c673ee832406 (diff)
downloadgitea-e8860ef4f9fe84aac856e354a897734aac7c279b.tar.gz
gitea-e8860ef4f9fe84aac856e354a897734aac7c279b.zip
Some refactor on git diff and ignore getting commit information failed on migrating pull request review comments (#9996)
* Some refactor on git diff and ignore getting commit information failed on migrating pull request review comments * fix test * fix lint * Change error log to warn
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/commit.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go
index 2e6cd76bb3..b2fa2790bc 100644
--- a/routers/repo/commit.go
+++ b/routers/repo/commit.go
@@ -292,10 +292,10 @@ func Diff(ctx *context.Context) {
// RawDiff dumps diff results of repository in given commit ID to io.Writer
func RawDiff(ctx *context.Context) {
- if err := gitdiff.GetRawDiff(
+ if err := git.GetRawDiff(
models.RepoPath(ctx.Repo.Owner.Name, ctx.Repo.Repository.Name),
ctx.Params(":sha"),
- gitdiff.RawDiffType(ctx.Params(":ext")),
+ git.RawDiffType(ctx.Params(":ext")),
ctx.Resp,
); err != nil {
ctx.ServerError("GetRawDiff", err)