diff --git a/backwords_compat.sh b/backwords_compat.sh index 8c0f3d65ef2d3971d9a3b4bddad0d1e21d4bf1cf..6188f9fe5fe307bf209fe5eed96c3c646d9fbc26 100755 --- a/backwords_compat.sh +++ b/backwords_compat.sh @@ -6,8 +6,15 @@ repo=$1 cloneDir=$(mktemp -d) CI_PROJECT_DIR=${CI_PROJECT_DIR:-$(pwd)} -git clone --depth 1 "$repo" "$cloneDir" -cd "$cloneDir" +if [ "${repo}" = "https://gitlab.com/gitlab-org/gitlab-pages.git" ]; then + git clone "$repo" "$cloneDir" + cd "$cloneDir" + git fetch --all + git switch kassio/fix-labkit-compatibility +else + git clone --depth 1 "$repo" "$cloneDir" + cd "$cloneDir" +fi go mod edit -replace=gitlab.com/gitlab-org/labkit="$CI_PROJECT_DIR"