2014-11-18 11:00:38 -05:00
|
|
|
module GitHelper
|
|
|
|
def strip_gpg_signature(text)
|
|
|
|
text.gsub(/-----BEGIN PGP SIGNATURE-----(.*)-----END PGP SIGNATURE-----/m, "")
|
|
|
|
end
|
2016-09-01 08:23:39 -04:00
|
|
|
|
|
|
|
def short_sha(text)
|
2016-09-06 13:08:06 -04:00
|
|
|
Commit.truncate_sha(text)
|
2016-09-01 08:23:39 -04:00
|
|
|
end
|
2014-11-18 11:00:38 -05:00
|
|
|
end
|