From a8d6ab1a3063c67e4a0922017ce6edc5aafcfa9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=A1zquez=20Acosta?= Date: Mon, 29 May 2017 17:19:36 -0400 Subject: [PATCH] Clean after updating with git. If the repo your working with removes a python module, mr.developer leaved .pycs behind. This may hurt your ability to test that other modules are properly updated (by not importing the removed module). --- src/mr/developer/git.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mr/developer/git.py b/src/mr/developer/git.py index 3cdc5e4..2635934 100644 --- a/src/mr/developer/git.py +++ b/src/mr/developer/git.py @@ -239,6 +239,8 @@ def git_update(self, **kwargs): stdout, stderr = self.git_update_submodules(stdout, stderr, submodule=submodule) self.output((logger.info, "Initialized '%s' submodule at '%s' with git." % (name, submodule))) + self.run_git(["clean", "-f", "-X", "-d"]) # Remove .pycs + if kwargs.get('verbose', False): return stdout