summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-06 12:42:10 +0200
committerDouwe Maan <douwe@gitlab.com>2015-04-06 13:10:10 +0200
commitb5757b7489672f61bb4ea770accaac1cb38e9ffd (patch)
tree9f7ad2a120326a7dc5ca3d9b9566cd402dc4820f /bin
parente8403e8bb7c5c9109af83a183943d5361ad1409b (diff)
downloadgitlab-shell-b5757b7489672f61bb4ea770accaac1cb38e9ffd.tar.gz
GitlabShell doesn't need to set GL_ID at all.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gitlab-shell5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/gitlab-shell b/bin/gitlab-shell
index 8154029..084f0c9 100755
--- a/bin/gitlab-shell
+++ b/bin/gitlab-shell
@@ -5,6 +5,9 @@ unless ENV['SSH_CONNECTION']
exit
end
+key_id = /key-[0-9]+/.match(ARGV.join).to_s
+original_cmd = ENV['SSH_ORIGINAL_COMMAND']
+
require_relative '../lib/gitlab_init'
#
@@ -14,7 +17,7 @@ require_relative '../lib/gitlab_init'
#
require File.join(ROOT_PATH, 'lib', 'gitlab_shell')
-if GitlabShell.new.exec
+if GitlabShell.new(key_id, original_cmd).exec
exit 0
else
exit 1