lib/autobuild/import/git.rb
# A default list of repositories that should be used as reference
# repositories for all Git importers
#
# It is initialized (by order of priority) using the
# AUTOBUILD_GIT_CACHE_DIR and AUTOBUILD_CACHE_DIR environment
# variables
#
# @return [Array]
# @see default_alternates=, Git#alternates
A default list of repositories that should be used as reference
repositories for all Git importers

It is initialized (by order of priority) using the
AUTOBUILD_GIT_CACHE_DIR and AUTOBUILD_CACHE_DIR environment
variables
A default list of repositories that should be used as reference repositories for all Git importers It is initialized ( by order of priority ) using the AUTOBUILD_GIT_CACHE_DIR and AUTOBUILD_CACHE_DIR environment variables
def default_alternates
                if @default_alternates then @default_alternates
                elsif cache_dir = ENV['AUTOBUILD_GIT_CACHE_DIR']
                    @default_alternates = cache_dir.split(':').map { |path| File.expand_path(path) }
                elsif cache_dir = ENV['AUTOBUILD_CACHE_DIR']
                    @default_alternates = cache_dir.split(':').map { |path| File.join(File.expand_path(path), 'git', '%s') }
                else Array.new
                end
            end
def default_alternates if @default_alternates then @default_alternates elsif cache_dir = ENV [ 'AUTOBUILD_GIT_CACHE_DIR' ] @default_alternates = cache_dir . split ( ':' ) . map { | path | File . expand_path ( path ) } elsif cache_dir = ENV [ 'AUTOBUILD_CACHE_DIR' ] @default_alternates = cache_dir . split ( ':' ) . map { | path | File . join ( File . expand_path ( path ) , 'git' , '%s' ) } else Array . new end end
A default list of repositories that should be used as reference
repositories for all Git importers
A default list of repositories that should be used as reference repositories for all Git importers
None
Array
see
None