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
This commit is contained in:
Lunny Xiao authored and zeripath committed 2020-01-28 08:02:03 +00:00
1 parent 1019913eab
commit e8860ef4f9
7 files changed
+356 -321

No files matched your search

+2 -2
View File
@@ -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)