rails/rails — pull request #8169 by nicolasdespres (2012-11-10 19:41:52+00:00)
Title: Rake test:uncommitted finds git directory in ancestors.

Sometimes your git directory is an ancestor of your application root
directory.

For example:
./repo/.git/
./repo/app/Rakefile

In this case rake test:uncommitted will be unable to detect your SCM.

This patch fixes this and add a test.