class Avmtrf1::Git::CachedRepository

def initialize(url)

def initialize(url)
  @url = url
  super(local_path)
  init
  assert_remote_url('origin', url)
  system!('fetch', 'origin', '-pPt')
end

def local_path

def local_path
  r = ::File.join(ENV.fetch('HOME', nil), '.cache', 'git_cached_repositories', url.parameterize) # rubocop:disable Style/EnvHome, Layout/LineLength
  ::FileUtils.mkdir_p(::File.dirname(r))
  r
end