properly ignore dot-git paths but not paths containing "git"