debian-mirror-gitlab/app/helpers/git_helper.rb
2016-09-29 09:46:39 +05:30

9 lines
201 B
Ruby

module GitHelper
def strip_gpg_signature(text)
text.gsub(/-----BEGIN PGP SIGNATURE-----(.*)-----END PGP SIGNATURE-----/m, "")
end
def short_sha(text)
Commit.truncate_sha(text)
end
end