Skip to content

Commit 8bb41e3

Browse files
committed
Fix parameter
1 parent 7e8d5cf commit 8bb41e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/commits.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ func DownloadCommitDiffOrPatch(ctx *context.APIContext) {
252252
if err := git.GetRawDiff(
253253
repoPath,
254254
ctx.Params(":sha"),
255-
git.RawDiffType(ctx.Params(":type")),
255+
git.RawDiffType(ctx.Params(":diffType")),
256256
ctx.Resp,
257257
); err != nil {
258258
if git.IsErrNotExist(err) {

0 commit comments

Comments
 (0)