[damned-lies] Clean tree after git checkout



commit 22f2f420df1e9b06f9a3d42fe188b92f5d0c07f7
Author: Claude Paroz <claude 2xlibre net>
Date:   Mon Apr 20 14:01:18 2009 +0200

    Clean tree after git checkout
---
 stats/models.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/stats/models.py b/stats/models.py
index ab019b8..f6162af 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -463,7 +463,7 @@ class Branch(models.Model):
                     "localdir" : modulepath,
                     })
             elif vcs_type == "git":
-                commandList.append("cd \"%(localdir)s\" && git checkout %(branch)s && git fetch && git reset --hard origin/%(branch)s" % {
+                commandList.append("cd \"%(localdir)s\" && git checkout %(branch)s && git fetch && git reset --hard origin/%(branch)s && git clean -dfq" % {
                     "localdir" : modulepath,
                     "branch" : self.name,
                     })



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