From b1d35c59bf107009dd9d49a398da077be5ead07c Mon Sep 17 00:00:00 2001 From: Saurabh Bhatia Date: Fri, 11 Apr 2014 11:11:20 +0800 Subject: [PATCH] Changed the @current_tag and changed the update manager --- app/controllers/admin/sites_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/sites_controller.rb b/app/controllers/admin/sites_controller.rb index f07abac..bb14b76 100644 --- a/app/controllers/admin/sites_controller.rb +++ b/app/controllers/admin/sites_controller.rb @@ -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