Hide gpg signature on tags page from tag message
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
435128171d
commit
f9aead9f6e
2 changed files with 6 additions and 1 deletions
5
app/helpers/git_helper.rb
Normal file
5
app/helpers/git_helper.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
module GitHelper
|
||||
def strip_gpg_signature(text)
|
||||
text.gsub(/-----BEGIN PGP SIGNATURE-----(.*)-----END PGP SIGNATURE-----/m, "")
|
||||
end
|
||||
end
|
|
@ -6,7 +6,7 @@
|
|||
= tag.name
|
||||
- if tag.message.present?
|
||||
|
||||
= tag.message
|
||||
= strip_gpg_signature(tag.message)
|
||||
.pull-right
|
||||
- if can? current_user, :download_code, @project
|
||||
= render 'projects/repositories/download_archive', ref: tag.name, btn_class: 'btn-grouped btn-group-small'
|
||||
|
|
Loading…
Reference in a new issue