mirror of
https://github.com/searxng/searxng.git
synced 2024-12-17 06:46:29 +00:00
Merge pull request #381 from return42/fix-translate-commit
[fix] commit message of 'make weblate.push.translations'
This commit is contained in:
commit
09a6872e5f
1 changed files with 4 additions and 3 deletions
7
manage
7
manage
|
@ -240,7 +240,7 @@ weblate.push.translations() {
|
||||||
# 5. Notify Weblate to pull updated 'master' & 'translations' branch.
|
# 5. Notify Weblate to pull updated 'master' & 'translations' branch.
|
||||||
|
|
||||||
local messages_pot diff_messages_pot last_commit_hash last_commit_detail \
|
local messages_pot diff_messages_pot last_commit_hash last_commit_detail \
|
||||||
last_commit_message exitcode
|
exitcode
|
||||||
messages_pot="${TRANSLATIONS_WORKTREE}/searx/translations/messages.pot"
|
messages_pot="${TRANSLATIONS_WORKTREE}/searx/translations/messages.pot"
|
||||||
( set -e
|
( set -e
|
||||||
pyenv.activate
|
pyenv.activate
|
||||||
|
@ -301,11 +301,12 @@ weblate.push.translations() {
|
||||||
# git add/commit/push
|
# git add/commit/push
|
||||||
last_commit_hash=$(git log -n1 --pretty=format:'%h')
|
last_commit_hash=$(git log -n1 --pretty=format:'%h')
|
||||||
last_commit_detail=$(git log -n1 --pretty=format:'%h - %as - %aN <%ae>' "${last_commit_hash}")
|
last_commit_detail=$(git log -n1 --pretty=format:'%h - %as - %aN <%ae>' "${last_commit_hash}")
|
||||||
last_commit_message="[translations] update messages.pot and messages.po files\nFrom ${last_commit_detail}"
|
|
||||||
|
|
||||||
pushd "${TRANSLATIONS_WORKTREE}"
|
pushd "${TRANSLATIONS_WORKTREE}"
|
||||||
git add searx/translations
|
git add searx/translations
|
||||||
git commit -m "${last_commit_message}"
|
git commit \
|
||||||
|
-m "[translations] update messages.pot and messages.po files" \
|
||||||
|
-m "From ${last_commit_detail}"
|
||||||
git push
|
git push
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue