1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Update git.rake

>        --mirror
           Set up a mirror of the source repository. This implies --bare. Compared to --bare, --mirror not only maps local branches of the source to local
           branches of the target, it maps all refs (including remote-tracking branches, notes etc.) and sets up a refspec configuration such that all these refs
           are overwritten by a git remote update in the target repository.
This commit is contained in:
Lee Hambley 2013-04-17 17:12:25 +03:00
parent 5fddec9134
commit 98c7990d60

View file

@ -28,7 +28,7 @@ namespace :git do
else
within deploy_path do
with git_environmental_variables do
execute :git, :clone, fetch(:repo), repo_path
execute :git, :clone, '--mirror', fetch(:repo), repo_path
end
end
end