2015-04-26 12:48:37 +05:30
|
|
|
module GitHelper
|
|
|
|
def strip_gpg_signature(text)
|
|
|
|
text.gsub(/-----BEGIN PGP SIGNATURE-----(.*)-----END PGP SIGNATURE-----/m, "")
|
|
|
|
end
|
2016-09-29 09:46:39 +05:30
|
|
|
|
|
|
|
def short_sha(text)
|
|
|
|
Commit.truncate_sha(text)
|
|
|
|
end
|
2015-04-26 12:48:37 +05:30
|
|
|
end
|