Update Reposiroty to support Clone by branch's name.

I added the ability to specify the branch name, it is an optional parameter. It will fetch the default branch when it isn't specified.