提交列表中添加不分支的提交记录功能

This commit is contained in:
huang 2016-04-13 14:44:57 +08:00
parent f7cb451feb
commit 426f5a76cc
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ update
g = Gitlab.client g = Gitlab.client
limit = 20 limit = 20
#每次页面的换回值从1开始,但是gitlab的页面查询是从0开始,所以先改变page的类型减一在改回来 #每次页面的换回值从1开始,但是gitlab的页面查询是从0开始,所以先改变page的类型减一在改回来
@commits = g.commits(@project.gpid, page:(params[:page].to_i - 1).to_s) @commits = g.commits(@project.gpid, page:(params[:page].to_i - 1).to_s, ref_name:@rev)
#add by hx #add by hx
#rep_count = commit_count(@project) #rep_count = commit_count(@project)