[damned-lies] Fixed #112 - Check existing language path after updating checkout



commit aa8c5af4159b14d98563df36d3773a6f3c8a9a39
Author: Claude Paroz <claude 2xlibre net>
Date:   Wed Feb 20 21:51:50 2019 +0100

    Fixed #112 - Check existing language path after updating checkout

 stats/models.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/stats/models.py b/stats/models.py
index 89819c85..3a1a17b4 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -550,10 +550,9 @@ class Branch(models.Model):
 
     def commit_po(self, po_file, domain, language, author):
         """ Commit the file 'po_file' in the branch VCS repository """
-        dest_full_path, existing, linguas_path = domain.commit_info(self, language)
-
         with ModuleLock(self.module):
             self.update_repo()
+            dest_full_path, existing, linguas_path = domain.commit_info(self, language)
             # Copy file in repo
             shutil.copyfile(str(po_file), str(dest_full_path))
 


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