mina-deploy / mina

Blazing fast deployer and server automation tool
https://rubygems.org/gems/mina
Other
4.34k stars 491 forks source link

git:ensure_pushed needs to be more robust #639

Closed zhou-daniel-dz closed 2 years ago

zhou-daniel-dz commented 5 years ago

Currently the git:ensure_pushed task does not account for the case where a remote branch doesn't exist while a local branch does.

As a result git:ensure_pushed does not exit properly.

Ensuring everyting is pushed to git fatal: ambiguous argument 'origin/remote_branch': unknown revision or path not in the working tree.