From 20cf85f5bab2efd1b6a07227ea8318e984ef1549 Mon Sep 17 00:00:00 2001 From: Davide Depau Date: Sat, 18 Jul 2020 21:30:03 +0200 Subject: [PATCH] Properly checkout base reference in CI validator --- ci-scripts/clone_base_ref.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ci-scripts/clone_base_ref.sh b/ci-scripts/clone_base_ref.sh index fca8312..9b820c4 100755 --- a/ci-scripts/clone_base_ref.sh +++ b/ci-scripts/clone_base_ref.sh @@ -5,7 +5,6 @@ set +e echo "Trying to fetch remote repo" # Try to pull as much of the repo as we can -git fetch origin --unshallow git fetch origin --recurse-submodules=no git fetch origin @@ -19,6 +18,6 @@ cp -a "$repodir" "base" echo "Checkout base reference: $GITHUB_BASE_REF" cd base -git checkout -b "origin/$GITHUB_BASE_REF" +git checkout "origin/$GITHUB_BASE_REF" cd "../$repodir"