Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Accelerator Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SoCLabs
Accelerator Project
Commits
94efaa74
Commit
94efaa74
authored
2 years ago
by
dwn1c21
Browse files
Options
Downloads
Patches
Plain Diff
Update set_env.sh
parent
4ad4ff46
No related branches found
No related tags found
1 merge request
!1
Changed set_env flow to source script in soctools and breadcrumb left in...
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
set_env.sh
+2
-2
2 additions, 2 deletions
set_env.sh
with
2 additions
and
2 deletions
set_env.sh
+
2
−
2
View file @
94efaa74
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment