summaryrefslogtreecommitdiffstats
path: root/modules/git/tree_blob_gogit.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-03-23 19:04:50 +0000
committerGitHub <noreply@github.com>2022-03-23 19:04:50 +0000
commit6fc73a84332643ffbd431f6e7fcb16942c505c04 (patch)
treee30d2430a5e8aa9785c1d95ddd76f70af9aa761b /modules/git/tree_blob_gogit.go
parentb1a0a78a51a31d68a0412d7aab2b6e67bcbd41e4 (diff)
downloadgitea-6fc73a84332643ffbd431f6e7fcb16942c505c04.tar.gz
gitea-6fc73a84332643ffbd431f6e7fcb16942c505c04.zip
Fix compare link in active feeds for new branch (#19149) (#19185)
Backport #19149 When a new branch is pushed the old SHA is always listed as the empty sha and thus the compare link that is created does not work correctly. Therefore when creating the compare link for new branches: 1. Attempt to get the parent of the first commit and use that as the basis for the compare link. 2. If this is not possible make a comparison to the default branch 3. Finally if that is not possible simply do not show a compare link. However, there are multiple broken compare links remaining therefore, in order for these to not break we will simply make the compare link redirect to the default branch. Fix #19144 Signed-off-by: a1012112796 <1012112796@qq.com> Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Andrew Thornton <art27@cantab.net> Co-authored-by: a1012112796 <1012112796@qq.com>
Diffstat (limited to 'modules/git/tree_blob_gogit.go')
0 files changed, 0 insertions, 0 deletions