#! /bin/bash -ex

# Ensure we have at least enough to check gecko out...
test $GECKO_BASE_REPOSITORY

# Workspace to checkout gecko into...
WORKSPACE=$1
mkdir -p $WORKSPACE

# Note that tc-vcs requires only the first two arguments so others are optional.
# This is intended to make it easier to clone local directories.
buildbot_step "Clone gecko" tc-vcs checkout $WORKSPACE/gecko \
  $GECKO_BASE_REPOSITORY \
  $GECKO_HEAD_REPOSITORY \
  $GECKO_HEAD_REV \
  $GECKO_HEAD_REF
