summaryrefslogtreecommitdiff
path: root/app/helpers/git_helper.rb
blob: 8ab394384f30081ee9830a3e84cbc65e6144455e (plain)
1
2
3
4
5
6
7
8
9
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