Give feedback to the user as soon as possible. Disable the "OK" button and warn the user about invalid branch names. [Valid/Invalid branch names](https://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html). Also, on [SO](http://stackoverflow.com/questions/3651860/which-characters-are-illegal-within-a-branch-name). May or may not happen for the first version of the integration.