Skip to content
Browse files

Merge pull request #9 from dblock/master

Bug: can't avoid specifying predeploy command.
  • Loading branch information...
2 parents b4b8e7f + 1640c53 commit 15a4be9eae5ffebbb955c139481e20ae7b963175 @sarcilav sarcilav committed Jul 6, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/heroku/bartender/command.rb
View
6 lib/heroku/bartender/command.rb
@@ -20,13 +20,13 @@ def self.sha_exist?(sha)
def self.move_to release, predeploy, heroku_remote
@@last_error = nil
- if ! predeploy.nil?
+ if predeploy && ! predeploy.strip.blank?
rc = system(predeploy)
if rc.nil? || ! rc
- raise "Error executing '#{predeploy}': #{$?}"
+ raise "Error executing pre-deploy command '#{predeploy}': #{$?}"
end
end
- repo = Grit::Repo.new('.')
+ repo = Grit::Repo.new('.')
if ! repo.remote_list.include?(heroku_remote)
raise "No such remote `#{heroku_remote}`"
end

0 comments on commit 15a4be9

Please sign in to comment.
Something went wrong with that request. Please try again.