From e8354e2fb52267978de47104a7118c3ed38376c1 Mon Sep 17 00:00:00 2001
From: Mike McQuaid <mike@mikemcquaid.com>
Date: Mon, 15 Jul 2013 21:18:32 -0700
Subject: [PATCH] brew-test-bot: reset before checkout.

---
 Library/Contributions/cmd/brew-test-bot.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb
index 7b66ddd33c..e19272d304 100755
--- a/Library/Contributions/cmd/brew-test-bot.rb
+++ b/Library/Contributions/cmd/brew-test-bot.rb
@@ -288,8 +288,8 @@ class Test
     git 'stash'
     git 'am --abort 2>/dev/null'
     git 'rebase --abort 2>/dev/null'
-    git 'checkout -f master'
     git 'reset --hard'
+    git 'checkout -f master'
     git 'clean --force -dx'
   end
 
-- 
GitLab