class ChefCLI::Policyfile::GitLockFetcher

def install

git copy.
Install into the chefcli cookbook store. This method leverages a cached
then munged since we do not have Policyfile validation in scope.
COPYPASTA from CookbookOmnifetch::GitLocation and Berkshelf::GitLocation
def install
  if cached?
    Dir.chdir(cache_path) do
      git %{fetch --force --tags #{uri} "refs/heads/*:refs/heads/*"}
    end
  else
    git %{clone #{uri} "#{cache_path}" --bare --no-hardlinks}
  end
  Dir.chdir(cache_path) do
    @revision ||= git %{rev-parse #{rev_parse}}
  end
end