diff options
author | Michael <michael@fallo.ws> | 2013-03-10 06:05:23 -0700 |
---|---|---|
committer | Michael <michael@fallo.ws> | 2013-03-10 06:05:23 -0700 |
commit | 4bbda0b2590fc5081638c113c7cf74b60c8680b2 (patch) | |
tree | 69023666966e396663ee13c52e3b4b2edbf535a4 /lib/gitlab_projects.rb | |
parent | 381f4cdb0e5c625dc3def0bc66085dcb0ccd4efc (diff) | |
parent | fc8bd8f760fac40287681894dfd9a45e8c4d0517 (diff) | |
download | gitlab-shell-4bbda0b2590fc5081638c113c7cf74b60c8680b2.tar.gz |
Merge pull request #1 from gitlabhq/master
Master Sync
Diffstat (limited to 'lib/gitlab_projects.rb')
-rw-r--r-- | lib/gitlab_projects.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb index 4cd337a..b9eb36a 100644 --- a/lib/gitlab_projects.rb +++ b/lib/gitlab_projects.rb @@ -41,8 +41,8 @@ class GitlabProjects end def import_project - dir = @project_name.match(/[a-zA-Z\.\_\-]+\.git$/).to_s - cmd = "cd #{@repos_path} && git clone --bare #{@project_name} #{dir} && #{create_hooks_cmd}" + @source = ARGV.shift + cmd = "cd #{@repos_path} && git clone --bare #{@source} #{@project_name} && #{create_hooks_cmd}" system(cmd) end end |