版本库 文件目录(未完成--)
This commit is contained in:
parent
73898953d9
commit
9eb498dbc4
|
@ -255,11 +255,12 @@ update
|
|||
@repository.fetch_changesets if Setting.autofetch_changesets? && @path.empty?
|
||||
|
||||
g = Gitlab.client
|
||||
# r = g.get("/users?search=#{user.mail}").first
|
||||
# rr = g.trees(@project.id, @path)
|
||||
project = g.project(11)
|
||||
# rr = g.trees(project.id, @path)
|
||||
# r = g.get ("/projects/#{@project}/repository/tree")
|
||||
# :name, :path, :kind, :size, :lastrev, :changeset
|
||||
@entries = @repository.entries(@path, @rev)
|
||||
# @entries = @repository.entries(@path, @rev)
|
||||
@entries = g.trees(project.id, @path)
|
||||
@changeset = @repository.find_changeset_by_name(@rev)
|
||||
|
||||
#@project_path_cut = RepositoriesHelper::PROJECT_PATH_CUT
|
||||
|
|
Loading…
Reference in New Issue