Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure branch exists locally and remotely before comparing it #677

Merged
merged 3 commits into from
Aug 12, 2021

Conversation

lovro-bikic
Copy link
Member

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.

@lovro-bikic lovro-bikic added this to the 1.3.0 milestone Aug 12, 2021
@lovro-bikic lovro-bikic merged commit 5cff173 into master Aug 12, 2021
@lovro-bikic lovro-bikic deleted the fix/git-ensure-pushed branch August 12, 2021 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

git:ensure_pushed needs to be more robust
2 participants