Skip to content
Snippets Groups Projects
Commit 94efaa74 authored by dwn1c21's avatar dwn1c21
Browse files

Update set_env.sh

parent 4ad4ff46
No related branches found
No related tags found
1 merge request!1Changed set_env flow to source script in soctools and breadcrumb left in...
...@@ -64,7 +64,7 @@ if [ ! -f $SOCLABS_PROJECT_DIR/.socinit ]; then ...@@ -64,7 +64,7 @@ if [ ! -f $SOCLABS_PROJECT_DIR/.socinit ]; then
# Source environment variables for all submodules # Source environment variables for all submodules
cd $SOCLABS_DESIGN_ROOT cd $SOCLABS_DESIGN_ROOT
git submodule update --remote --recursive 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 # 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 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 git restore $SOCLABS_DESIGN_ROOT/.gitmodules
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment