diff --git a/stackalytics/processor/vcs.py b/stackalytics/processor/vcs.py index e797cae90..fba610106 100644 --- a/stackalytics/processor/vcs.py +++ b/stackalytics/processor/vcs.py @@ -95,6 +95,8 @@ class Git(Vcs): def _checkout(self, branch): try: + sh.git('clean', '-d', '--force') + sh.git('reset', '--hard') sh.git('checkout', 'origin/' + branch) return True except sh.ErrorReturnCode as e: