Commit 4e442b49 authored by Sandro Knauß's avatar Sandro Knauß
Browse files

[Weblate/] replace git push with a bash function.

parent 88bc27cd
......@@ -26,6 +26,20 @@ git_fetch() {
git_force_push() {
log "Force-pushing ${branch} branch of '${checkout}' to the '${remote}' remote..."
cd "${checkout}"
git push --quiet ${remote} +${branch} >> "$UPDATE_LOGFILE" 2>&1
log "done."
docron() {
log "Merging changes from main repo into the integration repo..."
git_fetch "${INTEGRATION_GIT_CHECKOUT}" origin
......@@ -40,12 +54,7 @@ docron() {
"${INTEGRATION_GIT_CHECKOUT}" weblate/master
log "done."
log "Force-pushing master branch of '${INTEGRATION_GIT_CHECKOUT}' to the 'weblate-gatekeeper' remote..."
git push --quiet weblate-gatekeeper +master >> "$UPDATE_LOGFILE" 2>&1
log "done."
git_force_push "${INTEGRATION_GIT_CHECKOUT}" weblate-gatekeeper master
git_fetch "${WEBLATE_GIT_CHECKOUT}" origin
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment