pull-trans: fix "Added translation" commits
The weblate commits now take two forms: Translated using Weblate ($LANG) Added translation using Weblate ($LANG) Adapt the regex to reflect both, avoiding the latter form from screwing everything up.
This commit is contained in:
parent
99a488dc18
commit
5052266450
@ -26,7 +26,7 @@ ref="${REMOTE}/${REMOTE_BRANCH}"
|
||||
diff="HEAD...$ref -- */values-*/strings.xml"
|
||||
|
||||
authors=$(git log --format="%s %an" $diff | \
|
||||
sed 's/Translated using Weblate (\(.*\)) \(.*\)/\2||\1/' | sort -f -u | column -s '||' -t)
|
||||
sed 's/.* using Weblate (\(.*\)) \(.*\)/\2||\1/' | sort -f -u | column -s '||' -t)
|
||||
|
||||
git diff $diff | git apply
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user