mydrive / capistrano-deploytags

Add timestamped Git tags for each environment on deployment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Small inconsistency

zewelor opened this issue · comments

    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'

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