-
Notifications
You must be signed in to change notification settings - Fork 96
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
Declare git filter to be required by default or make doc more explicit about it #191
Comments
Your citation appears to be from the |
Right, sorry I forgot to add the link.
I think the difference of behavior will be just on the conservative side. It's hard to think about a "best effort" use case in which you don't care if a 20 MB notebook gets accidentally pushed to your history. We have had episodes like this at the office and they became nightmarish once the changes were spread. |
Sorry to hear that this has already caused you pain 😞 Would you be interested in sending a PR for this? |
Nah, no problem, it hasn't been like that, mostly people that forgot to install pre-commit hooks, not even filters. But the consequences are the same.
Is it just adding check_call(git_config + ['filter.nbstripout.required', 'true']) here? |
Yes, that and the equivalent reverse operation in |
@memeplex Are you still interested in sending a PR for this? |
It is actually a fairly simple change, so I'll implement this myself for the upcoming 0.8.1 release. |
By default the filter is not required:
Even a slight error in the configuration (e.g. if nbstripout changes location and is not found by git) may silently skip nbstripout. This is rather dangerous, since once big blobs are in the repo it's not easy to cleanup history, specially if it was already pushed to other remotes.
You mention
required = true
but just for manual installation at the bottom of the README.Please make it the default mode of operation.
The text was updated successfully, but these errors were encountered: