Attempt to fix git checkout

This commit is contained in:
Jeremy Soller 2018-06-09 20:16:45 -06:00
parent 1d9f58ac87
commit f5b09479bd

View file

@ -31,13 +31,18 @@ before_script:
apt-get update -qq && apt-get update -qq &&
apt-get purge -qq binutils-doc && apt-get purge -qq binutils-doc &&
apt-get install -qq x86-64-unknown-redox-gcc && apt-get install -qq x86-64-unknown-redox-gcc &&
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none &&
source "$HOME/.cargo/env" &&
cargo install cargo-config xargo
build: build:
script: script:
- | - |
git pull && [ -d "$CI_PROJECT_DIR" ] || git clone "$CI_BUILD_REPO" "$CI_PROJECT_DIR" &&
git submodule update --init --recursive && cd "$CI_PROJECT_DIR" &&
source "$HOME/.cargo/env" && git remote set-url origin "$CI_BUILD_REPO" &&
cargo install cargo-config xargo && git fetch origin &&
make ci git checkout "$CI_BUILD_REF" &&
git submodule update --init --recursive &&
source "$HOME/.cargo/env" &&
make ci