From c9e362a8ebc8c6bb810b0b8db08553f7176992f2 Mon Sep 17 00:00:00 2001 From: Dustin Sallings Date: Thu, 26 Mar 2009 10:48:51 -0700 Subject: [PATCH] Add -x to git clean. -x removes all build artifacts that are specifically ignored, thus required for returning a tree to its pristine state. --- buildbot/slave/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildbot/slave/commands.py b/buildbot/slave/commands.py index 79573b2..221a05d 100755 --- a/buildbot/slave/commands.py +++ b/buildbot/slave/commands.py @@ -2058,7 +2058,7 @@ class Git(SourceBase): except IOError: diffbranch = False if diffbranch: - command = ['git', 'clean', '-f', '-d'] + command = ['git', 'clean', '-f', '-d', '-x'] c = ShellCommand(self.builder, command, self._fullSrcdir(), sendRC=False, timeout=self.timeout, usePTY=False) self.command = c -- 2.11.4.GIT