lib/buildr/core/build.rb
# Add a tag reference in .git/refs/tags and push it to the remote if any.
# If a tag with the same name already exists it will get deleted (in both local and remote repositories).
Add a tag reference in .git/refs/tags and push it to the remote if any.
If a tag with the same name already exists it will get deleted (in both local and remote repositories).
Add a tag reference in . git / refs / tags and push it to the remote if any . If a tag with the same name already exists it will get deleted ( in both local and remote repositories ) .
def tag_release(tag)
      info "Committing buildfile with version number #{extract_version}"
      Git.commit File.basename(Buildr.application.buildfile.to_s), message
      Git.push if Git.remote
      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
def tag_release ( tag ) info "Committing buildfile with version number #{extract_version}" Git . commit File . basename ( Buildr . application . buildfile . to_s ) , message Git . push if Git . remote 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
Add a tag reference in .git/refs/tags and push it to the remote if any.
Add a tag reference in . git / refs / tags and push it to the remote if any .
tag