Check git version for --branch support. Fixes #2504
Merge branch 'bug2504' of git://github.com/srinupiits/buildbot