Skip to content
Snippets Groups Projects

Update common subtree

Merged Denis Pynkin requested to merge wip/d4s/subtree_update into apertis/v2020dev0
2 files
+ 13
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 5
2
@@ -7,12 +7,15 @@ usage () {
echo "'$0 pull' is used to update the common subtree in tests"
}
branch="$(git symbolic-ref --short HEAD)"
test -z "$branch" && branch="master"
case $1 in
pull)
git subtree pull -P common git@gitlab.apertis.org:tests/common.git master
git subtree pull -P common git@gitlab.apertis.org:tests/common.git "$branch"
;;
add)
git subtree add -P common git@gitlab.apertis.org:tests/common.git master
git subtree add -P common git@gitlab.apertis.org:tests/common.git "$branch"
;;
*) usage;;
esac
Loading