diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-07 16:33:48 +0000 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-07 16:33:48 +0000 |
| commit | 4d2d7068a58cb656eef02cf9de98ebad41fbf30b (patch) | |
| tree | 6d2a216b96487b716240c6219329137eae44e308 | |
| parent | bd3ccfbcb2b7beee6a10a99559f252ec242ea7fe (diff) | |
| parent | 4616d2efa4caf94f9c64ea4f7a54058b1a665cef (diff) | |
| download | gitlab-shell-4d2d7068a58cb656eef02cf9de98ebad41fbf30b.tar.gz | |
Merge branch 'separate_options_from_args' of /home/git/repositories/gitlab/gitlab-shell
| -rw-r--r-- | lib/gitlab_projects.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb index 3617bb2..788ccd8 100644 --- a/lib/gitlab_projects.rb +++ b/lib/gitlab_projects.rb @@ -48,7 +48,7 @@ class GitlabProjects def create_branch branch_name = ARGV.shift ref = ARGV.shift || "HEAD" - cmd = %W(git --git-dir=#{full_path} branch #{branch_name} #{ref}) + cmd = %W(git --git-dir=#{full_path} branch -- #{branch_name} #{ref}) system(*cmd) end @@ -61,7 +61,7 @@ class GitlabProjects def create_tag tag_name = ARGV.shift ref = ARGV.shift || "HEAD" - cmd = %W(git --git-dir=#{full_path} tag #{tag_name} #{ref}) + cmd = %W(git --git-dir=#{full_path} tag -- #{tag_name} #{ref}) system(*cmd) end @@ -94,7 +94,7 @@ class GitlabProjects def import_project @source = ARGV.shift $logger.info "Importing project #{@project_name} from <#{@source}> to <#{full_path}>." - cmd = %W(git clone --bare #{@source} #{full_path}) + cmd = %W(git clone --bare -- #{@source} #{full_path}) system(*cmd) && create_hooks(full_path) end @@ -156,7 +156,7 @@ class GitlabProjects end $logger.info "Forking project from <#{full_path}> to <#{full_destination_path}>." - cmd = %W(git clone --bare #{full_path} #{full_destination_path}) + cmd = %W(git clone --bare -- #{full_path} #{full_destination_path}) system(*cmd) && create_hooks(full_destination_path) end |
