SRombauts / UEGitPlugin

Unreal Engine 5 Git LFS 2 Source Control Plugin (beta)
http://srombauts.github.io/UEGitPlugin
MIT License
806 stars 165 forks source link

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

Closed ccarvalheiro closed 4 years ago

ccarvalheiro commented 4 years ago

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 commented 4 years ago

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

Cheers!