Allow git clone a specific branch.

Fixes #1502 

@ussuri