summaryrefslogtreecommitdiff
path: root/lib/gitlab_projects.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab_projects.rb')
-rw-r--r--lib/gitlab_projects.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb
index 0354b87..0dd56be 100644
--- a/lib/gitlab_projects.rb
+++ b/lib/gitlab_projects.rb
@@ -94,8 +94,8 @@ 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} #{project_name})
- system(*cmd, chdir: repos_path) && create_hooks(full_path)
+ cmd = %W(git clone --bare #{@source} #{full_path})
+ system(*cmd) && create_hooks(full_path)
end
# Move repository from one directory to another
@@ -156,8 +156,8 @@ class GitlabProjects
end
$logger.info "Forking project from <#{full_path}> to <#{full_destination_path}>."
- cmd = %W(git clone --bare #{full_path})
- system(*cmd, chdir: namespaced_path) && create_hooks(full_destination_path)
+ cmd = %W(git clone --bare #{full_path} #{full_destination_path})
+ system(*cmd) && create_hooks(full_destination_path)
end
def update_head