aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-01-30 17:15:16 +0100
committerMike McQuaid2014-01-30 17:15:16 +0100
commit8943b4f5528aad7d2bcb590de54e6613e92eb63e (patch)
tree6de1975317bcedf402d541faaa2ee168ff9a956a /Library
parent11be9bd8bf111addf9afdb99ccc3772f8219d877 (diff)
downloadhomebrew-8943b4f5528aad7d2bcb590de54e6613e92eb63e.tar.bz2
brew-test-bot: handle git repositories for upload.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb
index 504c34a2c..dad47fc94 100755
--- a/Library/Contributions/cmd/brew-test-bot.rb
+++ b/Library/Contributions/cmd/brew-test-bot.rb
@@ -431,6 +431,12 @@ if ARGV.include? '--ci-pr-upload' or ARGV.include? '--ci-testing-upload'
pr = ENV['UPSTREAM_PULL_REQUEST']
number = ENV['UPSTREAM_BUILD_NUMBER']
+ system "git am --abort 2>/dev/null"
+ system "git rebase --abort 2>/dev/null"
+ safe_system "git reset --hard"
+ safe_system "git checkout -f master"
+ safe_system "brew update"
+
if ARGV.include? '--ci-pr-upload'
safe_system "brew pull --clean #{pr}"
end