block by nicerobot 5979367

Find folders that are _not_ git repositories. This means, the parent folder of the .git directory is not reported by find.

I finally spent the time to figure this out. It’s easier than I thought:

find . -type d -exec test -e {}/.git \; -prune -o -type d ! -path . -print