Clones the Git working copy into the build directory.

Files:
  * The path inside the build directory to clone into.

Arguments:
  * repository: the location of the working copy repository, defaults to ".".
  * branch:     the branch to clone, clones to default primary if not provided.
