lib/hu/deploy.rb in hu-1.3.10 vs lib/hu/deploy.rb in hu-1.3.11

- old
+ new

@@ -253,14 +253,15 @@ when :DEPLOY promote_to_production anykey when :finish_release old_editor = ENV['EDITOR'] + old_git_editor = ENV['GIT_EDITOR'] tf = Tempfile.new('hu-tag') tf.write "#{release_tag}\n#{changelog}" tf.close - ENV['EDITOR'] = "cp #{tf.path}" + ENV['EDITOR'] = ENV['GIT_EDITOR'] = "cp #{tf.path}" env = { 'PREVIOUS_TAG' => highest_version, 'RELEASE_TAG' => release_tag } unless 0 == finish_release(release_tag, env) @@ -273,10 +274,10 @@ puts 'Please bring the universe into a state' puts 'where the above command succeeds, then try again.' puts exit 1 end - ENV['EDITOR'] = old_editor + ENV['EDITOR'] = ENV['GIT_EDITOR'] = old_editor anykey when :push_to_staging run_each <<-EOS.strip_heredoc :stream git push #{push_url} release/#{release_tag}:master -f