fix git remote branch recognition