levels/commit.rb in gitscrub-0.0.5 vs levels/commit.rb in gitscrub-0.0.6
- old
+ new
@@ -1,14 +1,17 @@
difficulty 1
-description "Make a commit"
+description "The README file has been added to your staging area, now commit it."
setup do
- `git init`
- `touch README`
- `git add README`
+ repo.init
+ FileUtils.touch("README")
+ repo.add("README")
end
solution do
- repo = Grit::Repo.new(".")
return false if repo.commits.empty?
true
+end
+
+hint do
+ puts "You must include a message when you commit."
end