summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-07-05 13:43:45 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-07-05 13:43:45 +0000
commita18c90128e4d3eeae1233b1bc3c3998afd223c0d (patch)
tree0a89154fd6940eb658ecad4dc583bf6d77e18cee
parent0a64624152735766c428d1532e434dd0bf5a9748 (diff)
parent9922f14fbeaad21ff52e36d75e6d2fa038940e4c (diff)
downloadgitlab-shell-a18c90128e4d3eeae1233b1bc3c3998afd223c0d.tar.gz
Merge branch 'sh-disable-rubygems' into 'master'
Disable RubyGems to increase performance See merge request !141
-rw-r--r--CHANGELOG3
-rwxr-xr-xbin/authorized_keys2
-rwxr-xr-xbin/check2
-rwxr-xr-xbin/create-hooks2
-rwxr-xr-xbin/gitlab-keys2
-rwxr-xr-xbin/gitlab-projects2
-rwxr-xr-xbin/gitlab-shell2
-rwxr-xr-xbin/install2
-rwxr-xr-xhooks/post-receive2
-rwxr-xr-xhooks/pre-receive2
-rwxr-xr-xhooks/update2
11 files changed, 13 insertions, 10 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 038c863..047433d 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+v5.2.0
+ - Disable RubyGems to increase performance
+
v5.1.1
- Revert "Remove old `project` parameter, use `gl_repository` instead"
diff --git a/bin/authorized_keys b/bin/authorized_keys
index ca01646..0f596bb 100755
--- a/bin/authorized_keys
+++ b/bin/authorized_keys
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/usr/bin/env ruby --disable-gems
#
# GitLab shell authorized_keys. Query GitLab API to get the authorized command for a given ssh key fingerprint
diff --git a/bin/check b/bin/check
index 9585416..8309c06 100755
--- a/bin/check
+++ b/bin/check
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/usr/bin/env ruby --disable-gems
require_relative '../lib/gitlab_init'
require_relative '../lib/gitlab_net'
diff --git a/bin/create-hooks b/bin/create-hooks
index d4111dc..4c48ecc 100755
--- a/bin/create-hooks
+++ b/bin/create-hooks
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/usr/bin/env ruby --disable-gems
# Recreate GitLab hooks in the Git repositories managed by GitLab.
#
diff --git a/bin/gitlab-keys b/bin/gitlab-keys
index 9eb1950..7340e52 100755
--- a/bin/gitlab-keys
+++ b/bin/gitlab-keys
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/usr/bin/env ruby --disable-gems
require_relative '../lib/gitlab_init'
diff --git a/bin/gitlab-projects b/bin/gitlab-projects
index 22b0022..aa05c25 100755
--- a/bin/gitlab-projects
+++ b/bin/gitlab-projects
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/usr/bin/env ruby --disable-gems
require_relative '../lib/gitlab_init'
diff --git a/bin/gitlab-shell b/bin/gitlab-shell
index 6ef572f..ed58a0a 100755
--- a/bin/gitlab-shell
+++ b/bin/gitlab-shell
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/usr/bin/env ruby --disable-gems
unless ENV['SSH_CONNECTION']
puts "Only ssh allowed"
diff --git a/bin/install b/bin/install
index e9c1654..69dd920 100755
--- a/bin/install
+++ b/bin/install
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/usr/bin/env ruby --disable-gems
require_relative '../lib/gitlab_init'
diff --git a/hooks/post-receive b/hooks/post-receive
index 3504a48..70e9ebc 100755
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/usr/bin/env ruby --disable-gems
# This file was placed here by GitLab. It makes sure that your pushed commits
# will be processed properly.
diff --git a/hooks/pre-receive b/hooks/pre-receive
index e8e04d8..eed4620 100755
--- a/hooks/pre-receive
+++ b/hooks/pre-receive
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/usr/bin/env ruby --disable-gems
# This file was placed here by GitLab. It makes sure that your pushed commits
# will be processed properly.
diff --git a/hooks/update b/hooks/update
index 4c2fc08..81414d2 100755
--- a/hooks/update
+++ b/hooks/update
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/usr/bin/env ruby --disable-gems
# This file was placed here by GitLab. It makes sure that your pushed commits
# will be processed properly.