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

Fix diff against head failing when branch doesn't exist on remote #114

Merged

Conversation

ccarvalheiro
Copy link
Contributor

The problem was that we were always trying to diff the head against the remote branch even if it didn't exist.
With this pull request, we now check if the branch exists on remote first and only then check against the remote tip or the local tip if the branch doesn't exist on remote.

This should fix at least issues #107 and #112.

@SRombauts SRombauts self-assigned this Oct 30, 2019
@SRombauts SRombauts merged commit c085bb2 into SRombauts:master Oct 30, 2019
@SRombauts
Copy link
Owner

Thank you very much for this, looks very good too me.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants