Change the default behavior of walk so that it avoids entering the .git repositories.

To do so, it now performs a topdown search instead of a bottom up.