That's not my script's fault - your syntax for checking out the branch is wrong.
http://stackoverflow.com/questions/1778088/how-to-clone-a-single-branch-in-git
But I'd suggest that you run the script and let it check out master, then change the branch once it's finished.
Jason
Installation
Advice on fresh install from scratch? (RHEL6.4)
This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 5 posting(s) in 1 day