Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git_helper.rb « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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