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