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 11 forks source link

Fix branch name when cloning from multidev #4

Closed stevector closed 6 years ago

stevector commented 6 years ago

In trying to test https://github.com/pantheon-systems/terminus-site-clone-plugin/pull/3, I ran into a different error related to multidev names:

error: pathspec '123' did not match any file(s) known to git.
 [error]  Command `git -C /Users/stevepersch/.terminus/plugins/terminus-site-clone-plugin/terminus-site-clone-temp/bitb-persch/ checkout 123` failed with exit code 1

The command I ran was

 terminus site:clone bitb-persch.umami   d8-papc.123 --database --backup

This pull request updates the branch name used when checking out the source code.

ataylorme commented 6 years ago

Thanks @stevector