Commit f6e74dee authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #58 from encero/master

propably better ssh-key id finding in ARGV
parents aec81968 f0cacf6c
......@@ -6,7 +6,7 @@ class GitlabShell
attr_accessor :key_id, :repo_name, :git_cmd, :repos_path, :repo_name
def initialize
@key_id = ARGV.shift
@key_id = /key-[0-9]+/.match(ARGV.join).to_s
@origin_cmd = ENV['SSH_ORIGINAL_COMMAND']
@repos_path = GitlabConfig.new.repos_path
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