Fix: improve error message when branch prefix matching finds no match
Fix: use git_current_branch everywhere