Checks if a git repository is in the local branch list.