]> source.dussan.org Git - gitea.git/commit
Fix incorrect "blob excerpt" link when comparing files (#31013)
authorwxiaoguang <wxiaoguang@gmail.com>
Mon, 20 May 2024 05:57:57 +0000 (13:57 +0800)
committerGitHub <noreply@github.com>
Mon, 20 May 2024 05:57:57 +0000 (05:57 +0000)
commitf48cc501c46a2d34eb701561f01d888d689d60d5
tree2450639a4019bff2b87ceb2f01544b09fb85e8e0
parentb6574099edbb47e119762700f637c8da349cca2b
Fix incorrect "blob excerpt" link when comparing files (#31013)

When comparing files between the base repo and forked repo, the "blob
excerpt" link should point to the forked repo, because the commit
doesn't exist in base repo.

Co-authored-by: Giteabot <teabot@gitea.io>
templates/repo/diff/section_split.tmpl
templates/repo/diff/section_unified.tmpl
tests/integration/compare_test.go