Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Secworks SHA256 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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
SoCLabs
Secworks SHA256 Project
Commits
3d975e43
Commit
3d975e43
authored
2 years ago
by
dam1n19
Browse files
Options
Downloads
Patches
Plain Diff
SOC1-127
: Fix project branch file naming issue
parent
6f823204
Branches
Branches containing commit
Tags
v3.2.9
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
set_env.sh
+1
-1
1 addition, 1 deletion
set_env.sh
with
1 addition
and
1 deletion
set_env.sh
+
1
−
1
View file @
3d975e43
...
@@ -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
/proj
ect
-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
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