Properly checkout base reference in CI validator

This commit is contained in:
Davide Depau committed 2020-07-18 21:30:03 +02:00
1 parent 3c42386f94
commit 20cf85f5ba
1 file changed
+1 -2
+1 -2
View File
@@ -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"