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:
parent
5fddec9134
commit
98c7990d60
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue