block git dir access