Changed the @current_tag and changed the update manager
This commit is contained in:
parent
f800ac63ed
commit
b1d35c59bf
|
@ -190,7 +190,7 @@ class Admin::SitesController < OrbitBackendController
|
|||
end
|
||||
|
||||
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
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue