2022-11-24 21:14:59 +01:00
#!/usr/bin/env bash
set -eux
2018-07-01 16:22:28 +00:00
integration_branch = "translations-integration"
2022-11-24 21:14:59 +01:00
2018-07-01 16:22:28 +00:00
git remote add weblate https://translate.funkwhale.audio/git/funkwhale/front/ || echo "remote already exists"
git fetch weblate
git checkout weblate/develop
git reset --hard weblate/develop
2022-11-24 21:14:59 +01:00
git checkout -b " $integration_branch " || git checkout " $integration_branch "
2018-07-01 16:22:28 +00:00
git reset --hard weblate/develop
2022-11-24 21:14:59 +01:00
git push -f origin " $integration_branch "
2018-07-01 16:22:28 +00:00
echo " Branch created on pushed on origin/ $integration_branch "
2018-12-10 16:00:33 +01:00
echo " Open a merge request by visiting https://dev.funkwhale.audio/funkwhale/funkwhale/merge_requests/new?merge_request%5Bsource_branch%5D= $integration_branch "