Skip to content

Commit 92f086b

Browse files
authored
Remove remote and main (#1574)
1 parent 19a2ec1 commit 92f086b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/container/git-clone.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ pushd ${DESTINATION}
7777
git checkout ${GIT_REF}
7878
COMMIT_SHA=$(git rev-parse HEAD)
7979
git submodule update --init --recursive
80+
if [[ "${GIT_REPO}" == *"gitlab"* ]]; then
81+
git remote remove origin
82+
if grep -q -r gitlab-ci-token .git; then
83+
grep -r gitlab-ci-token .git | awk -F: '{print $1}' | xargs rm -f
84+
fi
85+
git branch -D main
86+
fi
8087
popd
8188

8289
## update the manifest file

0 commit comments

Comments
 (0)