Sha256: c667c8ad7b6b4cd75a1c5630c07dbb3419d76789f75c56b4adf60c1759659c84

Contents?: true

Size: 510 Bytes

Versions: 13

Compression:

Stored size: 510 Bytes

Contents

difficulty 2

description "You will be asked for 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 is the hash of the most recent commit?")[0..6]
end

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
githug-0.5.0 levels/log.rb
githug-0.4.8 levels/log.rb
githug-0.4.7 levels/log.rb
githug-0.4.6 levels/log.rb
githug-0.4.5 levels/log.rb
githug-0.4.4 levels/log.rb
githug-0.4.3 levels/log.rb
githug-0.4.2 levels/log.rb
githug-0.4.1 levels/log.rb
githug-0.4.0 levels/log.rb
githug-0.3.5 levels/log.rb
githug-0.3.4 levels/log.rb
githug-0.3.3 levels/log.rb