-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
GitUp does not work with clean/smudge filters? #224
Comments
GitUp does not execute attribute filters: https://github.com/git-up/GitUp/wiki |
Is that because it can't be done, or just hasn't been implemented (yet)? If the latter, is it likely to ever be implemented? This makes it very easy to accidentally commit unencrypted secrets if anyone is using GitUp and transcrypt (and probably git-crypt and others), and if we decide to choose transcrypt over GitUp, it still might be likely that a new developer comes along who doesn't know they can't use GitUp and accidentally commits unencrypted secrets. |
In believe it can be done but it's highly unlikely it will ever be implemented. You will have this problem with any Git tool that doesn't use the Git CLI. You might want to reject pushes server side if they contain unencrypted commits. |
Man, I really liked GitUp. Now I cannot use it after all. |
@cyborch you can still use it, just do not use it to stage files that depend on clean/smudge filters. Transcrypt has implemented some protection against accidentally committing unencrypted secrets with a pre-commit hook that gets installed when the git repo is initialised (clean/smudge filters configured). This is still not ideal because I love the GitUp experience for staging commits and would love to be able to do that for files that depend on clean/smudge filters. @swisspol @lucasderraugh Is there still no chance this will ever be implemented? |
It won't be changed on our end unless libgit2/libgit2#3224 is resolved. |
@lucasderraugh I might be reading it wrong, but is libgit2/libgit2#3224 resolved now? Does this mean GitUp could now potentially be updated to work with clean/smudge filters? |
@mrmachine In theory, yes. I haven't looked at the details of what was changed on libgit's end, but it would probably require some extra work on our end to add in the feature if it is part of libgit2. |
https://github.com/elasticdog/transcrypt is a project that transparently encrypts files within a git repository, using git's clean/smudge filters. This works as expected:
If I use GitUp just to commit (after adding the file to be encrypted via CLI), it also works:
But if I use GitUp to add (and commit from CLI), it doesn't work:
So GitUp is not properly calling the clean/smudge filters when files are staged to the index?
The text was updated successfully, but these errors were encountered: