# File lib/buildr/core/build.rb, line 452
    def tag_release(tag)
      unless this_version == extract_version
        info "Committing buildfile with version number #{extract_version}"
        Git.commit File.basename(Buildr.application.buildfile.to_s), message
        Git.push if Git.remote
      end
      info "Tagging release #{tag}"
      Git.git 'tag', '-d', tag rescue nil
      Git.git 'push', Git.remote, ":refs/tags/#{tag}" rescue nil if Git.remote
      Git.git 'tag', '-a', tag, '-m', "[buildr] Cutting release #{tag}"
      Git.git 'push', Git.remote, 'tag', tag if Git.remote
    end