We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d3cbb4 commit ea7d8b6Copy full SHA for ea7d8b6
routers/api/v1/repo/commits.go
@@ -275,8 +275,7 @@ func DownloadCommitPatch(ctx *context.APIContext) {
275
}
276
277
func DownloadCommitDiffOrPatch(ctx *context.APIContext, diffType string) {
278
- var repoPath string
279
- repoPath = models.RepoPath(ctx.Repo.Owner.Name, ctx.Repo.Repository.Name)
+ repoPath := models.RepoPath(ctx.Repo.Owner.Name, ctx.Repo.Repository.Name)
280
if err := git.GetRawDiff(
281
repoPath,
282
ctx.Params(":sha"),
0 commit comments