pantheon-systems / terminus-site-clone-plugin

A Terminus plugin that adds the `site:clone` command to facilitate cloning sites on Pantheon
MIT License
21 stars 12 forks source link

Push all branches, not just master #9

Closed ElijahLynn closed 6 years ago

ElijahLynn commented 6 years ago

Just ran a terminus site:clone and it worked well without issues. However, it doesn't bring over old branches, which I have to manually do.

ElijahLynn commented 6 years ago

I see it is cloning all branches, but just pushing 1 branch, changed title.

https://github.com/pantheon-systems/terminus-site-clone-plugin/blob/master/src/Commands/SiteCloneCommand.php#L481

ataylorme commented 6 years ago

@ElijahLynn I'll wait for your feedback in #11, though having all branches available may serve a different use case. My concern would be blowing away branches on the destination site with those on the source site if the same branch names, e.g. master, exist in both.

ataylorme commented 6 years ago

This is now mostlyz covered in the create new site and clone all environments example script. I say mostly because only branches with a multidev are copied but that should suffice for most use cases. If another branch is needed then it can be manually pushed from the source site to the destination site using two git remotes.