mydrive / capistrano-deploytags

Add timestamped Git tags for each environment on deployment
BSD 2-Clause "Simplified" License
123 stars 20 forks source link

Small inconsistency #3

Closed zewelor closed 11 years ago

zewelor commented 11 years ago
    def validate_git_vars
      unless exists?(:branch) && exists?(:stage)
        logger.log Capistrano::Logger::IMPORTANT, "Capistrano Deploytags requires that :branch and :stage be defined."
        raise 'define :branch or :stage'
      end
    end

there is check for both :branch AND :stage but in raise there is define :branch OR :stage i belive it should be

raise  'define :branch and :stage'
relistan commented 11 years ago

This was fixed and committed this weekend. Thanks @bazbremner for the pull request.