Commit 0dcc9f39 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'hide-gpg-signature' into 'master'

Hide gpg signature

Fixes #1743

See merge request !1263
parents fe46a5c0 f9aead9f
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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment