summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-10-04 18:58:31 +0200
committerGitHub <noreply@github.com>2021-10-04 18:58:31 +0200
commit09a6872e5f41c50e9df92d82127b92ddd4ee8dbb (patch)
tree180a04c8a89dacbc47e8f8a6822c7c1e0f512096
parentcebc0e395b293ddf9f6a4485bb4bfa3a4ee9df4f (diff)
parentafc5c9870efc254855a2f35e0538423d3ff3df0b (diff)
downloadsearxng-09a6872e5f41c50e9df92d82127b92ddd4ee8dbb.tar.gz
searxng-09a6872e5f41c50e9df92d82127b92ddd4ee8dbb.zip
Merge pull request #381 from return42/fix-translate-commit
[fix] commit message of 'make weblate.push.translations'
-rwxr-xr-xmanage7
1 files changed, 4 insertions, 3 deletions
diff --git a/manage b/manage
index 2b00c904a..7afd763de 100755
--- a/manage
+++ b/manage
@@ -240,7 +240,7 @@ weblate.push.translations() {
# 5. Notify Weblate to pull updated 'master' & 'translations' branch.
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"
( set -e
pyenv.activate
@@ -301,11 +301,12 @@ weblate.push.translations() {
# git add/commit/push
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_message="[translations] update messages.pot and messages.po files\nFrom ${last_commit_detail}"
pushd "${TRANSLATIONS_WORKTREE}"
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
popd