Skip to content

Commit

Permalink
use git clone --shared
Browse files Browse the repository at this point in the history
This doesn't hardlink / copy all objects from repos
steved committed Dec 8, 2015
1 parent dabae29 commit 9fb3d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/git_repository.rb
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ def clone!(from: repository_url, to: repo_cache_dir, mirror: false)
if mirror
executor.execute!("git -c core.askpass=true clone --mirror #{from} #{to}")
else
executor.execute!("git clone #{from} #{to}")
executor.execute!("git clone --shared #{from} #{to}")
end
end
add_method_tracer :clone!

0 comments on commit 9fb3d0b

Please sign in to comment.