From 1394442e2e380d6b49c28632cf2b58381e523f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 19 Feb 2019 11:30:20 +0100 Subject: [PATCH] Avoid squasing translations without any files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This can happen with multi file backend where no files are created yet. Issue #1525 Fixes HOSTED-2H Signed-off-by: Michal Čihař --- weblate/addons/git.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weblate/addons/git.py b/weblate/addons/git.py index ff970331f9d4..c8e0702aaefa 100644 --- a/weblate/addons/git.py +++ b/weblate/addons/git.py @@ -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)