Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
oai-cn5g-fed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
cn5g
oai-cn5g-fed
Commits
3e7565db
Commit
3e7565db
authored
4 years ago
by
Raphael Defosseux
Browse files
Options
Downloads
Patches
Plain Diff
CI: sync of sub-modules more silent
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
edc92a12
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/syncComponents.sh
+17
-14
17 additions, 14 deletions
scripts/syncComponents.sh
with
17 additions
and
14 deletions
scripts/syncComponents.sh
+
17
−
14
View file @
3e7565db
...
@@ -52,7 +52,7 @@ function usage {
...
@@ -52,7 +52,7 @@ function usage {
AMF_BRANCH
=
'develop'
AMF_BRANCH
=
'develop'
SMF_BRANCH
=
'develop'
SMF_BRANCH
=
'develop'
SPGWU_BRANCH
=
'
develop
'
SPGWU_BRANCH
=
'
master
'
doDefault
=
1
doDefault
=
1
...
@@ -78,12 +78,6 @@ case $key in
...
@@ -78,12 +78,6 @@ case $key in
shift
shift
shift
shift
;;
;;
--spgwc-branch
)
SPGWC_BRANCH
=
"
$2
"
doDefault
=
0
shift
shift
;;
--spgwu-tiny-branch
)
--spgwu-tiny-branch
)
SPGWU_BRANCH
=
"
$2
"
SPGWU_BRANCH
=
"
$2
"
doDefault
=
0
doDefault
=
0
...
@@ -106,22 +100,31 @@ echo "OAI-SPGW-U component branch : ${SPGWU_BRANCH}"
...
@@ -106,22 +100,31 @@ echo "OAI-SPGW-U component branch : ${SPGWU_BRANCH}"
echo
"---------------------------------------------------------"
echo
"---------------------------------------------------------"
# First do a clean-up
# First do a clean-up
git submodule deinit
--all
--force
echo
"git submodule deinit --all --force"
git submodule deinit
--all
--force
>
/dev/null 2>&1
git submodule init
echo
"git submodule init"
git submodule update
git submodule init
>
/dev/null 2>&1
echo
"git submodule update"
git submodule update
>
/dev/null 2>&1
if
[
$doDefault
-eq
1
]
if
[
$doDefault
-eq
1
]
then
then
git submodule foreach
'git fetch --prune && git checkout develop && git pull origin develop'
git submodule foreach
'git fetch --prune && git checkout develop && git pull origin develop'
>
/dev/null 2>&1
else
else
pushd
component/oai-amf
pushd
component/oai-amf
git fetch
--prune
&&
git checkout
$AMF_BRANCH
&&
git pull origin
$AMF_BRANCH
git fetch
--prune
>
/dev/null 2>&1
git checkout
$AMF_BRANCH
>
/dev/null 2>&1
git pull origin
$AMF_BRANCH
>
/dev/null 2>&1
popd
popd
pushd
component/oai-smf
pushd
component/oai-smf
git fetch
--prune
&&
git checkout
$SMF_BRANCH
&&
git pull origin
$SMF_BRANCH
git fetch
--prune
>
/dev/null 2>&1
git checkout
$SMF_BRANCH
>
/dev/null 2>&1
git pull origin
$SMF_BRANCH
>
/dev/null 2>&1
popd
popd
pushd
component/oai-upf-equivalent
pushd
component/oai-upf-equivalent
git fetch
--prune
&&
git checkout
$SPGWU_BRANCH
&&
git pull origin
$SPGWU_BRANCH
git fetch
--prune
>
/dev/null 2>&1
git checkout
$SPGWU_BRANCH
>
/dev/null 2>&1
git pull origin
$SPGWU_BRANCH
>
/dev/null 2>&1
popd
popd
fi
fi
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