Sha256: a16efffa65b3c51b06a27fcf3e9ffe64b8567baaa72df205b05e1cf6b06f09ef

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

difficulty 2
description "Optimise how your repository is packaged ensuring that redundant packs are removed"

setup do
  repo.init
  FileUtils.touch("foo")
  repo.add("foo")
  repo.commit_all("Added foo")
end

solution do
  result = `git count-objects -v`
  required = ["count: 0", "prune-packable: 0"];
  required.all? { |r| result.include?(r) }
end

hint do
  puts "You want to research the `git repack` command"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
githug-0.3.3 levels/repack.rb