summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorMai-Lapyst <mai-lapyst@noreply.codeberg.org>2024-04-05 05:27:20 +0200
committerMai-Lapyst <mai-lapyst@noreply.codeberg.org>2024-04-05 05:27:20 +0200
commit33e8926efe49514132c5c8336635b0a1c94ec250 (patch)
treeb02e36f24624e3a43ebc287c17958b7d2bd8a61b /routers
parentMerge pull request '[RELEASE] v1.21.10-0 release notes' (#3026) from earl-war... (diff)
downloadforgejo-33e8926efe49514132c5c8336635b0a1c94ec250.tar.xz
forgejo-33e8926efe49514132c5c8336635b0a1c94ec250.zip
Fix view file button in diff compare
Diffstat (limited to 'routers')
-rw-r--r--routers/web/repo/compare.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/compare.go b/routers/web/repo/compare.go
index cfb0e859bd..93c224b7be 100644
--- a/routers/web/repo/compare.go
+++ b/routers/web/repo/compare.go
@@ -684,7 +684,7 @@ func PrepareCompareDiff(
ctx.Data["Username"] = ci.HeadUser.Name
ctx.Data["Reponame"] = ci.HeadRepo.Name
- setCompareContext(ctx, beforeCommit, headCommit, ci.HeadUser.Name, repo.Name)
+ setCompareContext(ctx, beforeCommit, headCommit, ci.HeadUser.Name, ci.HeadRepo.Name)
return false
}