From 9003040d6af415a264ab35049ca18eb170f01cd6 Mon Sep 17 00:00:00 2001 From: huang Date: Sat, 13 Aug 2016 14:42:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=BA=93=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=8A=A8=E6=80=81API=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/repositories_helper.rb | 1 - app/views/repositories/_dir_list_content.html.erb | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb index 576bd4efd..bc5e8ee57 100644 --- a/app/helpers/repositories_helper.rb +++ b/app/helpers/repositories_helper.rb @@ -50,7 +50,6 @@ module RepositoriesHelper def get_trees_last_changes(gpid, rev, ent_name, g) begin tree_changes = g.rep_last_changes(gpid, :rev => rev, :path => ent_name) - commits = g.commit(gpid, tree_changes.commit_id) rescue Exception => e puts e end diff --git a/app/views/repositories/_dir_list_content.html.erb b/app/views/repositories/_dir_list_content.html.erb index dd3f8bfa0..a25d7a94c 100644 --- a/app/views/repositories/_dir_list_content.html.erb +++ b/app/views/repositories/_dir_list_content.html.erb @@ -31,14 +31,14 @@ -