BigW Consortium Gitlab

git_helper.rb 201 Bytes
Newer Older
1 2 3 4
module GitHelper
  def strip_gpg_signature(text)
    text.gsub(/-----BEGIN PGP SIGNATURE-----(.*)-----END PGP SIGNATURE-----/m, "")
  end
5 6

  def short_sha(text)
7
    Commit.truncate_sha(text)
8
  end
9
end