I think I tried setting .gitattributes one level up and it didn't work. Maybe I was wrong though so I'll double check...