{% load i18n translations %} {% if component.get_export_url %}
{% translate "The exported Weblate repository can be shallow by default, so this workflow works best from an up-to-date upstream checkout. Cloning from the exported Weblate repository or using an outdated upstream checkout can fail even when Weblate and upstream are in sync. See the FAQ below for details." %}
wlc commit; wlc lock
git remote add weblate {{ component.get_export_url }} ; git remote update weblate
git merge weblate/{{ component.branch }}
git rebase origin/{{ component.branch }}
git push origin {{ component.branch }}
wlc pull ; wlc unlock
{% translate "Check the FAQ for info on how to resolve this." %}