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.
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.