diff options
author | Stan Hu <stanhu@gmail.com> | 2017-07-03 15:55:08 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-07-03 15:55:08 -0700 |
commit | 0944ebab55c536dce1f0a5decba251e1414e3de0 (patch) | |
tree | 77a6d2d9f63997a8e4ec5eb87993d2f44785a132 | |
parent | 0a64624152735766c428d1532e434dd0bf5a9748 (diff) | |
download | gitlab-shell-0944ebab55c536dce1f0a5decba251e1414e3de0.tar.gz |
Disable RubyGems to increase performance
By default, RubyGems is enabled, which causes the Ruby interpreter
to load 600+ additional files at startup when gitlab-shell is
designed not to use any external gems.
-rw-r--r-- | CHANGELOG | 3 | ||||
-rwxr-xr-x | bin/authorized_keys | 2 | ||||
-rwxr-xr-x | bin/check | 2 | ||||
-rwxr-xr-x | bin/create-hooks | 2 | ||||
-rwxr-xr-x | bin/gitlab-keys | 2 | ||||
-rwxr-xr-x | bin/gitlab-projects | 2 | ||||
-rwxr-xr-x | bin/gitlab-shell | 2 | ||||
-rwxr-xr-x | bin/install | 2 |
8 files changed, 10 insertions, 7 deletions
@@ -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 @@ -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' |