lib/open_project/gitolite/notification_handlers.rb
def flatten_project_git_repos(project)
        projects =
          project.self_and_descendants
          .uniq
          .select { |p| p.repository.is_a?(Repository::Gitolite) }

        projects.map do |p|
          { name: p.repository.gitolite_repository_name,
            absolute_path: p.repository.managed_repository_path,
            relative_path: p.repository.repository_identifier
          }
        end
      end
# Given a list of projects, returns a list of Git repos
# of all subprojects with two keys:
# name, path of the repository
Given a list of projects, returns a list of Git repos
of all subprojects with two keys:
name, path of the repository
Given a list of projects returns a list of Git repos of all subprojects with two keys : name path of the repository
def flatten_project_git_repos(project)
        projects =
          project.self_and_descendants
          .uniq
          .select { |p| p.repository.is_a?(Repository::Gitolite) }
        projects.map do |p|
          { name: p.repository.gitolite_repository_name,
            absolute_path: p.repository.managed_repository_path,
            relative_path: p.repository.repository_identifier
          }
        end
      end
def flatten_project_git_repos ( project ) projects = project . self_and_descendants . uniq . select { | p | p . repository . is_a? ( Repository :: Gitolite ) } projects . map do | p | { name : p . repository . gitolite_repository_name , absolute_path : p . repository . managed_repository_path , relative_path : p . repository . repository_identifier } end end
Given a list of projects, returns a list of Git repos
of all subprojects with two keys:
name, path of the repository
Given a list of projects returns a list of Git repos of all subprojects with two keys : name path of the repository
project