mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
jenkins: fix unsafe checkout when changing submodules (#32635)
do it twice old-commit-hash: 95263340493ed516c9a2f84ce770276560007b89
This commit is contained in:
@@ -70,6 +70,7 @@ safe_checkout() {
|
||||
git checkout $GIT_COMMIT
|
||||
git clean -xdff
|
||||
git submodule sync
|
||||
git submodule foreach --recursive "git reset --hard && git clean -xdff"
|
||||
git submodule update --init --recursive
|
||||
git submodule foreach --recursive "git reset --hard && git clean -xdff"
|
||||
|
||||
@@ -95,6 +96,7 @@ unsafe_checkout() {
|
||||
git reset --hard $GIT_COMMIT
|
||||
git clean -df
|
||||
git submodule sync
|
||||
git submodule foreach --recursive "git reset --hard && git clean -df"
|
||||
git submodule update --init --recursive
|
||||
git submodule foreach --recursive "git reset --hard && git clean -df"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user