gfm should respect @ref value when build relative links
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
e4c6dbe35f
commit
e1f141ac1a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue