Skip to content
Snippets Groups Projects
Commit 6f823204 authored by dam1n19's avatar dam1n19
Browse files

SOC1-124: Added method to determine branch for each subrepo

parent 270c6b56
Branches
No related tags found
No related merge requests found
#-----------------------------------------------------------------------------
# SoC Labs Sub repository branch setup
# A joint work commissioned on behalf of SoC Labs, under Arm Academic Access license.
#
# Contributors
#
# David Mapstone (d.a.mapstone@soton.ac.uk)
#
# Copyright 2023, SoC Labs (www.soclabs.org)
#-----------------------------------------------------------------------------
# Each Repo needs to have its branch set manually in here - they will defaultly be checked out to main
# Project Repository Subrepository Branch Index
nanosoc: feat_accel_decouple
CHIPKIT: main
accelerator-wrapper: main
fpga-lib: main
generic-lib: main
secworks-sha256: main
socsim: main
\ No newline at end of file
......@@ -72,6 +72,8 @@ if [ ! -f $PROJECT_DIR/.socinit ]; then
done
git submodule update --remote --recursive
git submodule foreach --recursive git checkout main
# 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 restore $DESIGN_ROOT/.gitmodules
touch $PROJECT_DIR/.socinit
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