Skip to content

Commit

Permalink
Test diff contents correctly even if color is turned on by default in…
Browse files Browse the repository at this point in the history
… user's git config
  • Loading branch information
David Friedland committed Apr 12, 2012
1 parent f9f4a2f commit fe05099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion levels/stage_lines.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
end

solution do
`git diff --staged` =~ /\+This change belongs to the first feature/ && `git diff` =~ /\+This change belongs to the second feature/
`git diff --no-color --staged` =~ /\+This change belongs to the first feature/ && `git diff --no-color` =~ /\+This change belongs to the second feature/
end

hint do
Expand Down

0 comments on commit fe05099

Please sign in to comment.