Commit 240eb9e9 authored by GitLab's avatar GitLab

propably better ssh key id finding in ARGV

parent 5519420e
...@@ -6,7 +6,7 @@ class GitlabShell ...@@ -6,7 +6,7 @@ class GitlabShell
attr_accessor :key_id, :repo_name, :git_cmd, :repos_path, :repo_name attr_accessor :key_id, :repo_name, :git_cmd, :repos_path, :repo_name
def initialize def initialize
@key_id = ARGV.shift @key_id = /key-[0-9]/.match(ARGV.join).to_s
@origin_cmd = ENV['SSH_ORIGINAL_COMMAND'] @origin_cmd = ENV['SSH_ORIGINAL_COMMAND']
@repos_path = GitlabConfig.new.repos_path @repos_path = GitlabConfig.new.repos_path
end end
......
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