Skip to content
Snippets Groups Projects
Commit 3d975e43 authored by dam1n19's avatar dam1n19
Browse files

SOC1-127: Fix project branch file naming issue

parent 6f823204
Branches
Tags v3.2.9
No related merge requests found
...@@ -73,7 +73,7 @@ if [ ! -f $PROJECT_DIR/.socinit ]; then ...@@ -73,7 +73,7 @@ if [ ! -f $PROJECT_DIR/.socinit ]; then
git submodule update --remote --recursive git submodule update --remote --recursive
git submodule foreach --recursive git checkout main git submodule foreach --recursive git checkout main
# 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 $PROJECT_DIR/$line && git checkout `grep $line $PROJECT_DIR/project-branch | awk '{ print $2 }'`; done git config --file .gitmodules --get-regexp path | awk '{ print $2 }' | while read line; do cd $PROJECT_DIR/$line && git checkout `grep $line $PROJECT_DIR/proj-branch | awk '{ print $2 }'`; done
git restore $DESIGN_ROOT/.gitmodules git restore $DESIGN_ROOT/.gitmodules
touch $PROJECT_DIR/.socinit touch $PROJECT_DIR/.socinit
fi fi
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment