Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fherreazcue opened this issue Sep 18, 2023 · 1 comment
Open

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

fherreazcue opened this issue Sep 18, 2023 · 1 comment
Assignees

Comments

@fherreazcue
Copy link

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
Copy link
Collaborator

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.

@admorgan admorgan self-assigned this Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants