ci: Fix checking out mutter for stable branches

Remote branches always start with the remote itself, so just looking
for "gnome-3-32" etc. won't produce a match.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/509
This commit is contained in:
Florian Müllner 2019-04-23 16:36:35 +00:00
parent c2e04e3cfa
commit 594a070029

View File

@ -23,7 +23,7 @@ if [ "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" ]; then
fi fi
if [ -z "$mutter_target" ]; then if [ -z "$mutter_target" ]; then
mutter_target=$(git branch -r -l $shell_branch) mutter_target=$(git branch -r -l origin/$shell_branch)
mutter_target=${mutter_target:-origin/master} mutter_target=${mutter_target:-origin/master}
echo Using $mutter_target instead echo Using $mutter_target instead
fi fi