Changed the @current_tag and changed the update manager

This commit is contained in:
Saurabh Bhatia 2014-04-11 11:11:20 +08:00
parent f800ac63ed
commit b1d35c59bf
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ class Admin::SitesController < OrbitBackendController
end end
def git_tags def git_tags
@current_tag = %x(git describe --tags).gsub("\n","") @current_tag = %x(git describe --tags).gsub("\n","").split("-").first
@latest_tag = `git ls-remote --tags origin | awk '{print $2}'`.split(/\n/).last.gsub("refs/tags/","") rescue nil @latest_tag = `git ls-remote --tags origin | awk '{print $2}'`.split(/\n/).last.gsub("refs/tags/","") rescue nil
end end