Sha256: 044ecc8c42133d6cb7a4a83b7ee5ab48369d1d670d55ab81e61e3e30c151b0be

Contents?: true

Size: 554 Bytes

Versions: 22

Compression:

Stored size: 554 Bytes

Contents

difficulty 2

description "You will be asked for the first 7 chars of the hash of most recent commit.  You will need to investigate the logs of the repository for this."

setup do
  repo.init
  file = File.new("newfile.rb", "w") 
  repo.add("newfile.rb")
  repo.commit_all("THIS IS THE COMMIT YOU ARE LOOKING FOR!")
end

solution do
  repo.commits.last.id_abbrev == request("What are the first 7 characters of the hash of the most recent commit?") 
end

hint do
  puts "You need to investigate the logs.  There is probably a command for doing that!"
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
githug-0.1.0 levels/log.rb
githug-0.0.10 levels/log.rb