Skip to content

Commit

Permalink
Remove origin if GIT_REPO is from gitlab (#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpupuck authored Jan 8, 2025
1 parent 4f388bd commit c9b32e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/container/git-clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ pushd ${DESTINATION}
git checkout ${GIT_REF}
COMMIT_SHA=$(git rev-parse HEAD)
git submodule update --init --recursive
if [[ "${GIT_REPO}" == *"gitlab"* ]]; then
git remote remove origin
fi
popd

## update the manifest file
Expand Down

0 comments on commit c9b32e9

Please sign in to comment.