ingydotnet / git-subrepo

MIT License
3.24k stars 268 forks source link

Is it possible to configure a subrepo as read-only? #595

Open fherreazcue opened 1 year ago

fherreazcue commented 1 year ago

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)

admorgan commented 1 year ago

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.