代码优化:gitlab和trustie分离
This commit is contained in:
parent
55e859c6c0
commit
7f3d44ce63
|
@ -241,7 +241,7 @@ update
|
|||
#Modified by young
|
||||
# (show_error_not_found; return) unless @entries
|
||||
g = Gitlab.client
|
||||
@changesets = g.get ("/projects/#{@project.gpid}/repository/commits")
|
||||
@changesets = g.commits(@project.gpid)
|
||||
# @changesets = @repository.latest_changesets(@path, @rev)
|
||||
# @changesets_count = @repository.latest_changesets(@path, @rev).count
|
||||
@changesets_count = @changesets.count
|
||||
|
|
Loading…
Reference in New Issue