Skip to content

Commit c9b32e9

Browse files
authored
Remove origin if GIT_REPO is from gitlab (#1230)
1 parent 4f388bd commit c9b32e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/container/git-clone.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ 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+
fi
8083
popd
8184

8285
## update the manifest file

0 commit comments

Comments
 (0)