summaryrefslogtreecommitdiff
path: root/testing/tools/githelper.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tools/githelper.py')
-rw-r--r--testing/tools/githelper.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/tools/githelper.py b/testing/tools/githelper.py
index 2e94196e85..a4016857f6 100644
--- a/testing/tools/githelper.py
+++ b/testing/tools/githelper.py
@@ -64,3 +64,6 @@ class GitHelper(object):
def CloneLocal(self, source_repo, new_repo):
RunCommandPropagateErr(['git', 'clone', source_repo, new_repo],
exit_status_on_error=1)
+
+ def Clean(self):
+ RunCommandPropagateErr(['git', 'clean', '-df'])