Extra parameters to git clone?

Is there any way to pass extra parameters to git? It takes a long time to get everything from github so I was hoping to be able to speed this up by grabbing just the current branch.  I'm trying to issue the equivalent of the following in TeamCity 8:

  git clone -b master --depth=1 --single-branch git@github.com:...

I tried putting "-b master --depth=1 --single-branch git@github.com:..." in the "Fetch URL" field but that gives me the error:

Failed for the root 'GitHub Test #13: Wrong username: '-b master --depth=1 --single-branch git', github expects a username 'git'

Is there a way to set these parameters in TeamCity?

Please sign in to leave a comment.