From bcb82edea09116b7cdd2e7f8f277c1c33050f937 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 13 Mar 2014 12:15:35 +0000 Subject: [PATCH] brew-test-bot: set Git author/committer correctly. --- Library/Contributions/cmd/brew-test-bot.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index 3ea35b96ec..01af3f026c 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -428,6 +428,9 @@ if ARGV.include? '--ci-pr-upload' or ARGV.include? '--ci-testing-upload' copied = system "cp #{jenkins}/jobs/\"#{job}\"/configurations/axis-version/*/builds/#{id}/archive/*.bottle*.* ." exit unless copied + ENV["GIT_COMMITTER_NAME"] = "BrewTestBot" + ENV["GIT_COMMITTER_EMAIL"] = "brew-test-bot@googlegroups.com" + pr = ENV['UPSTREAM_PULL_REQUEST'] number = ENV['UPSTREAM_BUILD_NUMBER'] @@ -441,6 +444,8 @@ if ARGV.include? '--ci-pr-upload' or ARGV.include? '--ci-testing-upload' safe_system "brew pull --clean #{pr}" end + ENV["GIT_AUTHOR_NAME"] = ENV["GIT_COMMITTER_NAME"] + ENV["GIT_AUTHOR_EMAIL"] = ENV["GIT_COMMITTER_EMAIL"] safe_system "brew bottle --merge --write *.bottle*.rb" remote = "git@github.com:BrewTestBot/homebrew.git"