matcha icon indicating copy to clipboard operation
matcha copied to clipboard

Hard-coded default branch

Open bbusse opened this issue 2 years ago • 2 comments

Fails when e.g. 'main' is the default branch

bbusse avatar Apr 22 '23 09:04 bbusse

With go-git there currently is no way to get the default branch: https://github.com/go-git/go-git/issues/510

bbusse avatar Apr 23 '23 14:04 bbusse

What's actually wanted is not the 'default branch' but the currently checked out HEAD I think. Maybe with something like: https://github.com/emersion/matcha/compare/master...bbusse:matcha:use-current-head

bbusse avatar Apr 23 '23 20:04 bbusse