summaryrefslogtreecommitdiff
path: root/bin/gitlab-shell
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-07-03 15:55:08 -0700
committerStan Hu <stanhu@gmail.com>2017-07-03 15:55:08 -0700
commit0944ebab55c536dce1f0a5decba251e1414e3de0 (patch)
tree77a6d2d9f63997a8e4ec5eb87993d2f44785a132 /bin/gitlab-shell
parent0a64624152735766c428d1532e434dd0bf5a9748 (diff)
downloadgitlab-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.
Diffstat (limited to 'bin/gitlab-shell')
-rwxr-xr-xbin/gitlab-shell2
1 files changed, 1 insertions, 1 deletions
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"