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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-11-18 19:00:38 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-11-18 19:00:38 +0300
commitf9aead9f6e7e477236a51fa4eab3a6cba5dd2331 (patch)
treef74c180186499253fa49b658f2500f207a201996 /app/helpers/git_helper.rb
parent435128171ddf41025f410429b8a639a368e77582 (diff)
Hide gpg signature on tags page from tag message
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/helpers/git_helper.rb')
-rw-r--r--app/helpers/git_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/git_helper.rb b/app/helpers/git_helper.rb
new file mode 100644
index 00000000000..09684955233
--- /dev/null
+++ b/app/helpers/git_helper.rb
@@ -0,0 +1,5 @@
+module GitHelper
+ def strip_gpg_signature(text)
+ text.gsub(/-----BEGIN PGP SIGNATURE-----(.*)-----END PGP SIGNATURE-----/m, "")
+ end
+end