jenkinsci/git-plugin — pull request #115 by thesam (2012-12-19 12:15:20+00:00)
Title: [FIXES JENKINS-15235] Add whitespace trimming of branch name.

- Trim branch name before storing it, since a valid branch name does
not begin or end with whitespace.
- Use same code for setting name in constructor and in setName().
Previously, there were no check for valid values in setName().