diff options
author | Gusted <gusted@noreply.codeberg.org> | 2024-04-06 14:25:12 +0200 |
---|---|---|
committer | Gusted <gusted@noreply.codeberg.org> | 2024-04-06 14:25:12 +0200 |
commit | 5691becaced746f2c20c7a4869df10f929a91cd4 (patch) | |
tree | 0da117e50445717c991688864e8fac1c76b9c952 /routers | |
parent | Merge pull request 'Add optional pronoun field in user settings' (#1518) from... (diff) | |
parent | Update integration test (diff) | |
download | forgejo-5691becaced746f2c20c7a4869df10f929a91cd4.tar.xz forgejo-5691becaced746f2c20c7a4869df10f929a91cd4.zip |
Merge pull request 'Fix "view file" button in diff compare view' (#3046) from Mai-Lapyst/forgejo:fix-diffcompare-viewfile-url into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3046
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
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 } |