Skip to content

Commit

Permalink
Fixed initial state being a valid solution
Browse files Browse the repository at this point in the history
Signed-off-by: Thameera Senanayaka <thameera123@gmail.com>
  • Loading branch information
thameera committed Oct 22, 2012
1 parent 053c9ac commit 9c2766d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion levels/reset_soft.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

solution do
return false unless File.exists?("newfile.rb") && repo.status.files.keys.include?("newfile.rb")
return false if repo.status.files["newfile.rb"].untracked
return false if repo.status.files["newfile.rb"].untracked || repo.head.message == "Premature commit"
true
end

Expand Down

0 comments on commit 9c2766d

Please sign in to comment.