Commit af88f842 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'clean_up_fork_and_import' of /home/git/repositories/gitlab/gitlab-shell

parents 261cb1fe 0233e806
...@@ -94,8 +94,8 @@ class GitlabProjects ...@@ -94,8 +94,8 @@ class GitlabProjects
def import_project def import_project
@source = ARGV.shift @source = ARGV.shift
$logger.info "Importing project #{@project_name} from <#{@source}> to <#{full_path}>." $logger.info "Importing project #{@project_name} from <#{@source}> to <#{full_path}>."
cmd = %W(git clone --bare #{@source} #{project_name}) cmd = %W(git clone --bare #{@source} #{full_path})
system(*cmd, chdir: repos_path) && create_hooks(full_path) system(*cmd) && create_hooks(full_path)
end end
# Move repository from one directory to another # Move repository from one directory to another
...@@ -156,8 +156,8 @@ class GitlabProjects ...@@ -156,8 +156,8 @@ class GitlabProjects
end end
$logger.info "Forking project from <#{full_path}> to <#{full_destination_path}>." $logger.info "Forking project from <#{full_path}> to <#{full_destination_path}>."
cmd = %W(git clone --bare #{full_path}) cmd = %W(git clone --bare #{full_path} #{full_destination_path})
system(*cmd, chdir: namespaced_path) && create_hooks(full_destination_path) system(*cmd) && create_hooks(full_destination_path)
end end
def update_head def update_head
......
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