[damned-lies] Change commit message from past to imperative mode



commit ad7603c09911698808dec99af49696c42eaf6e0f
Author: Claude Paroz <claude 2xlibre net>
Date:   Thu Oct 6 15:40:28 2016 +0200

    Change commit message from past to imperative mode
    
    Refs #772510.

 stats/models.py      |    4 ++--
 stats/tests/tests.py |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/stats/models.py b/stats/models.py
index e2c0de6..9702caa 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -681,9 +681,9 @@ class Branch(models.Model):
                         utils.insert_locale_in_linguas(linguas_file, locale)
                         utils.run_shell_command(
                             ['git', 'add', 'LINGUAS'], raise_on_error=True, cwd=commit_dir)
-                    msg = "Added %s translation" % language.name
+                    msg = "Add %s translation" % language.name
                 else:
-                    msg = "Updated %s translation" % language.name
+                    msg = "Update %s translation" % language.name
 
                 commit_cmd = ['git', 'commit', '-m', msg]
                 if author:
diff --git a/stats/tests/tests.py b/stats/tests/tests.py
index be75be5..e4a2194 100644
--- a/stats/tests/tests.py
+++ b/stats/tests/tests.py
@@ -330,7 +330,7 @@ class ModuleTestCase(TestCase):
         git_ops = update_repo_sequence + (
             'git add fr.po',
             # Quoting is done at the Popen level
-            'git commit -m Updated French translation --author Author <someone example org>',
+            'git commit -m Update French translation --author Author <someone example org>',
             'git push origin master', 'git log -n1 --format=oneline',
             'msgfmt --statistics -o /dev/null',
         )
@@ -343,7 +343,7 @@ class ModuleTestCase(TestCase):
         bem_lang = Language.objects.get(locale='bem')
         git_ops = update_repo_sequence + (
             'git add bem.po', 'git add LINGUAS',
-            'git commit -m Added Bemba translation --author Author <someone example org>',
+            'git commit -m Add Bemba translation --author Author <someone example org>',
             'git push origin master'
         )
         with patch_shell_command() as cmds:
@@ -360,7 +360,7 @@ class ModuleTestCase(TestCase):
         domain = self.mod.domain_set.get(name='help')
         git_ops = update_repo_sequence + (
             'git add fr/fr.po',
-            'git commit -m Updated French translation --author Author <someone example org>',
+            'git commit -m Update French translation --author Author <someone example org>',
             'git push origin master'
         )
         with patch_shell_command() as cmds:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]