summaryrefslogtreecommitdiff
path: root/bin/gitlab-shell
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gitlab-shell')
-rwxr-xr-xbin/gitlab-shell6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/gitlab-shell b/bin/gitlab-shell
index 0c3b654..4b3dc16 100755
--- a/bin/gitlab-shell
+++ b/bin/gitlab-shell
@@ -4,10 +4,14 @@ unless ENV['SSH_CONNECTION']
puts "Only ssh allowed"
exit
end
+
+require_relative '../lib/gitlab_init'
+
+#
#
# GitLab shell, invoked from ~/.ssh/authorized_keys
#
-ROOT_PATH = File.join(File.expand_path(File.dirname(__FILE__)), "..")
+#
require File.join(ROOT_PATH, 'lib', 'gitlab_shell')
GitlabShell.new.exec