mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-16 16:16:43 +10:00
Relative links in the README file shown on the repository homepage should point
to the default branch, not to master
This commit is contained in:
@@ -39,6 +39,7 @@ v 8.2.0 (unreleased)
|
||||
- Improve Continuous Integration graphs page
|
||||
- Make color of "Accept Merge Request" button consistent with current build status
|
||||
- Add ignore white space option in merge request diff and commit and compare view
|
||||
- Relative links from a repositories README.md now link to the default branch
|
||||
|
||||
v 8.1.4
|
||||
- Fix bug where manually merged branches in a MR would end up with an empty diff (Stan Hu)
|
||||
|
||||
@@ -51,7 +51,7 @@ module Gitlab
|
||||
relative_url_root,
|
||||
context[:project].path_with_namespace,
|
||||
path_type(file_path),
|
||||
ref || 'master', # assume that if no ref exists we can point to master
|
||||
ref || context[:project].default_branch, # if no ref exists, point to the default branch
|
||||
file_path
|
||||
].compact.join('/').squeeze('/').chomp('/')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user