You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a problem we've had more than once: someone has a decrypted copy of a file in their working directory, they pull updates from git and the encrypted copy has changed in the repo, but they don't know or notice this so keep on using their plain-text version.
Anybody got a good solution for this? We wondered about a post-merge git hook that would at least let you know when blackbox_diff returned non-empty results after a git pull. That would require a few tweaks to blackbox_diff (and it still wouldn't cover git pulls that did a rebase...)
I think the only solution may be to wrap any sensitive command with a script that checks blackbox_diff beforehand. Should I propose a blackbox_diff option that changes its return code based on whether there are any diffs?
Suggestions gratefully received!
Quentin
The text was updated successfully, but these errors were encountered:
For the moment, I've done a Python script which checks the key conditions. It's hard to incorporate this into git hooks, so I'm assuming that it would be used as the first stage of whatever you might want to do with the decrypted files after a check-out.
I appreciate that changes to blackbox_diff and the underlying libraries would be preferable; I may try and get around to that at some point!
Hi all -
Here's a problem we've had more than once: someone has a decrypted copy of a file in their working directory, they pull updates from git and the encrypted copy has changed in the repo, but they don't know or notice this so keep on using their plain-text version.
Anybody got a good solution for this? We wondered about a
post-merge
git hook that would at least let you know whenblackbox_diff
returned non-empty results after agit pull
. That would require a few tweaks toblackbox_diff
(and it still wouldn't cover git pulls that did a rebase...)I think the only solution may be to wrap any sensitive command with a script that checks
blackbox_diff
beforehand. Should I propose a blackbox_diff option that changes its return code based on whether there are any diffs?Suggestions gratefully received!
Quentin
The text was updated successfully, but these errors were encountered: