rails/rails — pull request #8168 by nicolasdespres (2012-11-10 19:27:43+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.