Could you not have placed the code in a submodule and likited access to the submodule repo ?