in lib/release_tools/remote_repository.rb [254:267]
def ensure_repo_exist
return if File.exist?(path) && File.directory?(File.join(path, '.git'))
cmd = %w[clone --quiet]
cmd << "--depth=#{global_depth}" if global_depth
cmd << "--branch=#{branch}" if branch
cmd << '--origin' << canonical_remote.name.to_s << canonical_remote.url << path
output, status = self.class.run_git(cmd)
unless status.success?
raise CannotCloneError.new("Failed to clone #{canonical_remote.url} to #{path}", output)
end
end