diff options
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 ad62cce..6700735 100644 --- a/lib/gitlab_projects.rb +++ b/lib/gitlab_projects.rb @@ -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 |