diff --git a/set_env.sh b/set_env.sh index 9bc6d649cf518d7f50d1a357ad4e86a5d540dd5d..0b3fcdd2f183c6f66a7a6297405d97d25208844c 100755 --- a/set_env.sh +++ b/set_env.sh @@ -64,9 +64,9 @@ if [ ! -f $SOCLABS_PROJECT_DIR/.socinit ]; then # Source environment variables for all submodules cd $SOCLABS_DESIGN_ROOT git submodule update --remote --recursive - git submodule foreach --recursive git checkout main # TODO: Bug on this line - need to checkout to correct branch + #git submodule foreach --recursive git checkout main # TODO: Bug on this line - need to checkout to correct branch # Read proj-branch file to find out which branch each subrepo needs to be on git config --file .gitmodules --get-regexp path | awk '{ print $2 }' | while read line; do cd $SOCLABS_PROJECT_DIR/$line && git checkout `grep $line $SOCLABS_PROJECT_DIR/proj-branch | awk '{ print $2 }'` && git pull; done git restore $SOCLABS_DESIGN_ROOT/.gitmodules touch $SOCLABS_PROJECT_DIR/.socinit -fi \ No newline at end of file +fi