Allow specifying of branch name or SHA1 ref (defaults to master)