mina-deploy / mina

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

Ensure branch exists locally and remotely before comparing it #677

Closed lovro-bikic closed 2 years ago

lovro-bikic commented 2 years ago

Fixes #639

If a branch doesn't exist either locally or remotely when git:ensure_pushed is invoked, git log fails with a weird message (ambiguous argument 'remote/branch': unknown revision or path not in the working tree). This fix first checks if the branch exists locally and remotely, then compares it.