diff options
author | Mai-Lapyst <mai-lapyst@noreply.codeberg.org> | 2024-04-05 05:27:20 +0200 |
---|---|---|
committer | Mai-Lapyst <mai-lapyst@noreply.codeberg.org> | 2024-04-05 05:27:20 +0200 |
commit | 33e8926efe49514132c5c8336635b0a1c94ec250 (patch) | |
tree | b02e36f24624e3a43ebc287c17958b7d2bd8a61b /routers | |
parent | Merge pull request '[RELEASE] v1.21.10-0 release notes' (#3026) from earl-war... (diff) | |
download | forgejo-33e8926efe49514132c5c8336635b0a1c94ec250.tar.xz forgejo-33e8926efe49514132c5c8336635b0a1c94ec250.zip |
Fix view file button in diff compare
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/repo/compare.go | 2 |
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 } |