Could be simplified with:
  path = repository.relative_path unless repository.puppet?