Is it possible to configure a subrepo as read-only?
fherreazcue opened this issue · comments
I know this is possible when using remotes with something like:
git remote set-url --push <my-remote-name> no-pushing
Is there a git subrepo equivalent to configure this?
(I know we could simply not use git subrepo push
, but it would be nice to have it as a safety lock)
I didn't even know that was an option in git. This is relatively straight forward to implement and I would be amiable to adding it as a feature. If you have the skills I would take a patch. If not I am happy to work with you to create the patch, or I will add it to the backlog of features to implement.