Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
check-validators-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
mpdl-bloxberg
check-validators-web
Commits
5fb67fa3
Commit
5fb67fa3
authored
3 years ago
by
Iosif Peterfi
Browse files
Options
Downloads
Plain Diff
Updated repos for release 2.0.0
parents
736127b7
98131cda
Branches
local_testing
Tags
1.0.0
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
supergit
+26
-9
26 additions, 9 deletions
supergit
with
26 additions
and
9 deletions
supergit
+
26
−
9
View file @
5fb67fa3
#!/bin/bash
function
print_help
()
{
echo
requieres arguments
echo
"usage:
$0
<command>
commands:
branch create new branch on each submodule
checkout checkout branch on each submodule
pull pull on all submodules
add add . on all submodules
status pull on all submodules
push pull on all submodules
pipeline-add pull on all submodules
pipeline-update pull on all submodules"
}
function
git_foreach
()
{
git submodule foreach
"git
$@
"
local
cmd
=
"git
$@
|| : "
git submodule foreach
"
$cmd
"
}
if
[
"$#"
-lt
1
]
;
then
...
...
@@ -15,12 +24,23 @@ if [ "$#" -lt 1 ]; then
fi
case
$1
in
branch
|
checkout
|
pull
|
add
|
status
|
commit
|
push
)
branch
|
checkout
|
pull
|
status
|
commit
|
push
)
git_foreach
$@
;;
pipeline
)
git submodule foreach
"git submodule add -b main https://gitlab.mpcdf.mpg.de/mpdl-bloxberg/bloxberg-pipeline-template.git"
add
)
git_foreach
"add ."
;;
pipeline-add
)
git_foreach
"submodule add -b main https://gitlab.mpcdf.mpg.de/mpdl-bloxberg/bloxberg-pipeline-template.git"
;;
pipeline-update
)
git_foreach
"submodule foreach git pull"
git_foreach
"add ."
git_foreach
"commit -m 'updated pipeline'"
git_foreach
"push"
;;
*
)
...
...
@@ -28,6 +48,3 @@ case $1 in
;;
esac
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