Skip to content

Commit 844d1d8

Browse files
authored
Don't push locales changes if there are no substantial changes (#13453)
1 parent e0db4b2 commit 844d1d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/push-locales

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ export GIT_COMMITTER_EMAIL="$ROBOT_EMAIL"
2929
DATE=$(date -u +%Y-%m-%d)
3030
REV=$(git rev-parse --short HEAD)
3131
MESSAGE="Extracted l10n messages from $DATE at $REV"
32-
DIFF_WITH_ONE_LINE_CHANGE="2 files changed, 2 insertions(+), 2 deletions(-)"
32+
DIFF_WITH_ONE_LINE_CHANGE="1 file changed, 1 insertion(+), 1 deletion(-)"
3333

3434
git_diff_stat=$(git diff --shortstat locale/templates/LC_MESSAGES)
3535

3636
info "git_diff_stat: $git_diff_stat"
3737

3838
# IF there are no uncommitted local changes, exit early.
39+
# DIFF_WITH_ONE_LINE_CHANGE is there to take into account changes to the
40+
# POT-Creation-Date on the amo.pot file.
3941
if [[ -z "$git_diff_stat" ]] || [[ "$git_diff_stat" == *"$DIFF_WITH_ONE_LINE_CHANGE"* ]]; then
4042
info """
4143
No substantial changes to l10n strings found. Exiting the process.

0 commit comments

Comments
 (0)