From 2616a4ab158906d51ef00654e07a3a7d0fe1e384 Mon Sep 17 00:00:00 2001 From: Kassio Borges Date: Mon, 25 Apr 2022 19:09:59 +0200 Subject: [PATCH] WIP --- backwords_compat.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/backwords_compat.sh b/backwords_compat.sh index 8c0f3d6..6188f9f 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" -- GitLab