mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-24 20:16:08 +10:00
gfm should respect @ref value when build relative links
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
@@ -179,7 +179,11 @@ module GitlabMarkdownHelper
|
||||
if @commit
|
||||
@commit.id
|
||||
elsif @repository && !@repository.empty?
|
||||
@repository.head_commit.sha
|
||||
if @ref
|
||||
@repository.commit(@ref).try(:sha)
|
||||
else
|
||||
@repository.head_commit.sha
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user