Skip to content
Snippets Groups Projects
Commit 7828e567 authored by Denis Pynkin's avatar Denis Pynkin
Browse files

Update "common" subtree from correct branch


We do not use "master" anymore, hence try to autodetect the proper
branch and fallback to master otherwise.

Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
parent d12ee184
Branches apertis/v2021
No related tags found
1 merge request!3Update common subtree
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment