Skip to content

Commit 67c8223

Browse files
author
Robert Speicher
committed
Merge branch 'fork-no-local' into 'master'
Use 'git clone --no-local' when creating a fork See merge request gitlab-org/gitlab-shell!176
2 parents 7e81de5 + 019d491 commit 67c8223

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v5.10.1
2+
- Use 'git clone --no-local' when creating a fork (!176)
3+
14
v5.10.0
25
- Add a 'fork-repository' command that works with hashed storage (!174)
36

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.10.0
1+
5.10.1

lib/gitlab_projects.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def fork_repository
385385
FileUtils.mkdir_p(File.dirname(to_path), mode: 0770)
386386

387387
$logger.info "Forking repository from <#{from_path}> to <#{to_path}>."
388-
cmd = %W(git clone --bare -- #{from_path} #{to_path})
388+
cmd = %W(git clone --bare --no-local -- #{from_path} #{to_path})
389389
system(*cmd) && self.class.create_hooks(to_path)
390390
end
391391

@@ -422,7 +422,7 @@ def fork_project
422422
end
423423

424424
$logger.info "Forking project from <#{full_path}> to <#{full_destination_path}>."
425-
cmd = %W(git clone --bare -- #{full_path} #{full_destination_path})
425+
cmd = %W(git clone --bare --no-local -- #{full_path} #{full_destination_path})
426426
system(*cmd) && self.class.create_hooks(full_destination_path)
427427
end
428428

0 commit comments

Comments
 (0)