summaryrefslogtreecommitdiff
path: root/bin/create-hooks
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/create-hooks
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/create-hooks')
-rwxr-xr-xbin/create-hooks2
1 files changed, 1 insertions, 1 deletions
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.
#