#! /bin/sh -e
# vim: set sw=4 sts=4 expandtab:
# simple script to merge weblate po files without creating tracking branch
# See https://docs.weblate.org/en/latest/admin/continuous.html
MAIN_BRANCH="latest"
ORIGIN_WEBLATE="weblate"
#wlc lock
git checkout "$MAIN_BRANCH"
git pull --rebase
wlc commit
git remote update "$ORIGIN_WEBLATE"
git merge "$ORIGIN_WEBLATE"/"$MAIN_BRANCH"
git push
wlc pull
git remote update "$ORIGIN_WEBLATE"
#wlc unlock
