From 46b64601449abb4238c3bd991c278da540ecd865 Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Sat, 3 Sep 2011 15:17:58 -0500 Subject: [PATCH] clean git builddirs after patches Fixes #2084. --- slave/buildslave/commands/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slave/buildslave/commands/git.py b/slave/buildslave/commands/git.py index 56678a04ec5..b6c80e32e07 100644 --- a/slave/buildslave/commands/git.py +++ b/slave/buildslave/commands/git.py @@ -137,7 +137,7 @@ def doVCUpdate(self): diffbranch = self.sourcedata != self.readSourcedata() except IOError: diffbranch = False - if diffbranch: + if diffbranch or self.sourcedirIsPatched(): command = ['clean', '-f', '-d'] if self.ignore_ignores: command.append('-x')