Commit 67c82234 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'fork-no-local' into 'master'

Use 'git clone --no-local' when creating a fork

See merge request gitlab-org/gitlab-shell!176
parents 7e81de5b 019d491d
v5.10.1
- Use 'git clone --no-local' when creating a fork (!176)
v5.10.0
- Add a 'fork-repository' command that works with hashed storage (!174)
......
......@@ -385,7 +385,7 @@ class GitlabProjects
FileUtils.mkdir_p(File.dirname(to_path), mode: 0770)
$logger.info "Forking repository from <#{from_path}> to <#{to_path}>."
cmd = %W(git clone --bare -- #{from_path} #{to_path})
cmd = %W(git clone --bare --no-local -- #{from_path} #{to_path})
system(*cmd) && self.class.create_hooks(to_path)
end
......@@ -422,7 +422,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 --no-local -- #{full_path} #{full_destination_path})
system(*cmd) && self.class.create_hooks(full_destination_path)
end
......
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