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']
exit
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')
require_relative '../lib/gitlab_init'
......@@ -17,7 +17,7 @@ require_relative '../lib/gitlab_init'
#
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
else
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