Commit b6349ec7 authored by GitLab's avatar GitLab

fixed bad regex

parent 240eb9e9
...@@ -6,7 +6,9 @@ class GitlabShell ...@@ -6,7 +6,9 @@ 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 = /key-[0-9]/.match(ARGV.join).to_s puts "---"
puts ARGV
@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