Commit 886b2178 authored by Ash McKenzie's avatar Ash McKenzie

key_id is overloaded, use key_str

parent e621b365
...@@ -5,7 +5,7 @@ unless ENV['SSH_CONNECTION'] ...@@ -5,7 +5,7 @@ unless ENV['SSH_CONNECTION']
exit exit
end end
key_id = /key-[0-9]+/.match(ARGV.join).to_s key_str = /key-[0-9]+/.match(ARGV.join).to_s
original_cmd = ENV.delete('SSH_ORIGINAL_COMMAND') original_cmd = ENV.delete('SSH_ORIGINAL_COMMAND')
require_relative '../lib/gitlab_init' require_relative '../lib/gitlab_init'
...@@ -17,7 +17,7 @@ require_relative '../lib/gitlab_init' ...@@ -17,7 +17,7 @@ require_relative '../lib/gitlab_init'
# #
require File.join(ROOT_PATH, 'lib', 'gitlab_shell') require File.join(ROOT_PATH, 'lib', 'gitlab_shell')
if GitlabShell.new(key_id).exec(original_cmd) if GitlabShell.new(key_str).exec(original_cmd)
exit 0 exit 0
else else
exit 1 exit 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment