Skip to content

Commit

Permalink
Avoid squasing translations without any files
Browse files Browse the repository at this point in the history
This can happen with multi file backend where no files are created yet.

Issue #1525
Fixes HOSTED-2H

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Feb 19, 2019
1 parent 5095762 commit 1394442
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions weblate/addons/git.py
Expand Up @@ -72,6 +72,8 @@ def squash_language(self, component, repository):

messages = {}
for code, filenames in languages.items():
if not filenames:
continue
messages[code] = repository.execute([
'log', '--format=%B', '{}..HEAD'.format(remote), '--'
] + filenames)
Expand Down

0 comments on commit 1394442

Please sign in to comment.