title: How do I deploy the master branch if no tag is specified using Capistrano?
body: <p>Here's what I have in my <code>deploy.rb</code> but this always deploys a tag. If I don't specify the tag, I want to deploy master.</p>
  
  <pre><code>set :branch, "master"
  
  set :branch do
    default_tag = `git tag`.split("\n").last
  
    tag = Capistrano::CLI.ui.ask "Tag to deploy (make sure to push the tag first): [#{default_tag}] "
    tag = default_tag if tag.empty?
    tag
  end
  </code></pre>