Fixes#21184
Regression of #19552
Instead of using `GetBlobByPath` I use the already existing instances.
We need more information from #19530 if that error is still present.
log.Error("CreateCsvDiff error whilst creating baseReader from file %s in commit %s in %s: %v",diffFile.Name,baseCommit.ID.String(),ctx.Repo.Repository.Name,err)
returnCsvDiffResult{nil,"unable to load file from base commit"}
iferr==errTooLarge{
returnCsvDiffResult{nil,err.Error()}
}
log.Error("error whilst creating csv.Reader from file %s in base commit %s in %s: %v",diffFile.Name,baseBlob.ID.String(),ctx.Repo.Repository.Name,err)
log.Error("CreateCsvDiff error whilst creating headReader from file %s in commit %s in %s: %v",diffFile.Name,headCommit.ID.String(),ctx.Repo.Repository.Name,err)
returnCsvDiffResult{nil,"unable to load file from head commit"}
iferr==errTooLarge{
returnCsvDiffResult{nil,err.Error()}
}
log.Error("error whilst creating csv.Reader from file %s in head commit %s in %s: %v",diffFile.Name,headBlob.ID.String(),ctx.Repo.Repository.Name,err)