Frando/abra:fix-branch-detection
main
See https://github.com/go-git/go-git/issues/518 for why this is needed.