[damned-lies] Fixed variable renaming



commit 621f5db05f2b2720636c7d08d654d3d007be6616
Author: Claude Paroz <claude 2xlibre net>
Date:   Fri Aug 12 08:57:33 2016 +0200

    Fixed variable renaming

 stats/models.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/stats/models.py b/stats/models.py
index d84f2c9..e2545b6 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -254,8 +254,8 @@ class Branch(models.Model):
                     shutil.rmtree(wdir)
                 else:
                     with ModuleLock(self.module):
-                        utils.run_shell_command(['git', 'checkout', 'master'], cwd=wd)
-                        utils.run_shell_command(['git', 'branch', '-D', self.name], cwd=wd)
+                        utils.run_shell_command(['git', 'checkout', 'master'], cwd=wdir)
+                        utils.run_shell_command(['git', 'branch', '-D', self.name], cwd=wdir)
         #To be implemented for hg/bzr
 
         # Remove the pot/po generated files


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