From 107f2d7443378d70367ea6200d7a6cb42e535805 Mon Sep 17 00:00:00 2001 From: andrewc Date: Tue, 24 Oct 2023 16:21:11 +1000 Subject: [PATCH] Remove .git/modules folders after getting repo name --- kibot-ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kibot-ci.yml b/kibot-ci.yml index 2d7f096..78e9738 100644 --- a/kibot-ci.yml +++ b/kibot-ci.yml @@ -112,9 +112,6 @@ image: git config --global user.name "KicadCi" git config --global user.email "andrew@micromelon.com.au" cd $CI_PROJECT_DIR - ls -a - ls -a .git - rm -rf .git/modules/libs for d in "libs/melonlib" "libs/melon3d" do cd $d @@ -127,6 +124,7 @@ image: REPO=$(basename $(git remote get-url origin)) cd $CI_PROJECT_DIR rm -rf $d + rm -rf .git/modules/$d git submodule set-url $d https://ci_push:$TOKEN@gitlab.com/Micromelon/education/hardware/$REPO git submodule update --init --remote --merge $d done