summaryrefslogtreecommitdiff
path: root/lib/gitlab_shell.rb
diff options
context:
space:
mode:
authorGitLab <gitlab@localhost>2013-05-28 09:31:12 +0200
committerGitLab <gitlab@localhost>2013-05-28 09:31:12 +0200
commitb6349ec7cd178e463dac03288161f6ea9b5a4661 (patch)
tree995565a489538a5fb17e622b0e1c8f9649de3a98 /lib/gitlab_shell.rb
parent240eb9e96b6090a8ffc76d921680a5c4f84bb564 (diff)
downloadgitlab-shell-b6349ec7cd178e463dac03288161f6ea9b5a4661.tar.gz
fixed bad regex
Diffstat (limited to 'lib/gitlab_shell.rb')
-rw-r--r--lib/gitlab_shell.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb
index 8d3d303..d7df549 100644
--- a/lib/gitlab_shell.rb
+++ b/lib/gitlab_shell.rb
@@ -6,7 +6,9 @@ class GitlabShell
attr_accessor :key_id, :repo_name, :git_cmd, :repos_path, :repo_name
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']
@repos_path = GitlabConfig.new.repos_path
end