forked from saurabh/orbit4-5
fix update manager check update
This commit is contained in:
parent
561a8b210b
commit
6851051af5
|
@ -82,9 +82,7 @@ class Admin::SitesController < OrbitAdminController
|
|||
end
|
||||
|
||||
def check_updates
|
||||
if (@current_tag.eql?(@latest_tag) == false)
|
||||
%x(git fetch origin)
|
||||
end
|
||||
%x(git fetch origin)
|
||||
@new_updates = %x(git log #{@branch}..origin/#{@branch} --pretty=format:"%ad','%s" --date=short).split("\n").map{|log| log.gsub("'","").split(",")}.to_json
|
||||
render :json => @new_updates
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue