Gazler / githug

Git your game on!
MIT License
6.84k stars 1.03k forks source link

Fix rename_commit level solution #256

Closed tyrannosaurusjames closed 4 years ago

tyrannosaurusjames commented 5 years ago

I was unable to complete this level because repo.commits[1] was not the correct commit to be checking the message of.

When setting up the level "First coommit" does exist at repo.commits[1] but after renaming it via rebase it was always the first commit in the list (repo.commits.first).

It looks like the solution for this level used to work in a similar way - you can see where it was changed from using .first to using [1] here: https://github.com/Gazler/githug/commit/7dcc3ab8640a2958b892515d19113e5e5ff05bed

This pull request fixes #255

Gazler commented 4 years ago

Fixed in #276