BigW Consortium Gitlab

util.rb 496 Bytes
Newer Older
1 2 3
module Gitlab
  module GitalyClient
    module Util
4 5 6 7
      class << self
        def repository(repository_storage, relative_path)
          Gitaly::Repository.new(
            storage_name: repository_storage,
8 9 10
            relative_path: relative_path,
            git_object_directory: Gitlab::Git::Env['GIT_OBJECT_DIRECTORY'].to_s,
            git_alternate_object_directories: Array.wrap(Gitlab::Git::Env['GIT_ALTERNATE_OBJECT_DIRECTORIES'])
11 12
          )
        end
13 14 15 16
      end
    end
  end
end