Skip to content
New issue

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

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

Already on GitHub? # to your account

Issues encrypting files with git-crypt. #1468

Closed
soundstep opened this issue Dec 9, 2022 · 3 comments
Closed

Issues encrypting files with git-crypt. #1468

soundstep opened this issue Dec 9, 2022 · 3 comments
Labels
bug Something isn't working dormant Marked by stale bot on close

Comments

@soundstep
Copy link

Describe the bug

It seems that committing and pushing with gitui interferes with git-crypt.

Git staging, committing and pushing using only with git command line works.

Not sure what's happening, something to investigate?

To Reproduce
Steps to reproduce the behavior:

  1. Create a repo
  2. Initialize git-crypt
  3. Add a secret
  4. Commit and Push using gitui

Expected behavior

Secrets should be encrypted, as they are while using the git command line, but they end up being pushed to the remote in clear.

Context (please complete the following information):

  • OS/Distro + Version: macOS 12.1 (21C52)
  • GitUI Version: gitui 0.22.1
  • Rust version: installed with brew
@soundstep soundstep added the bug Something isn't working label Dec 9, 2022
@extrawurst
Copy link
Collaborator

seems like another thing upstream libgit2 is not supporting. git-crypt is based on filters just like #1089

@soundstep
Copy link
Author

Right, thanks for the answer. Would it be worth adding a prompt in gitui? Like "Careful it seems you are using git-crypt and the file will be pushed in clear! Yes or Now?".
git crypt relies on .gitattributes, which should probably be the base to check a git-crypt usage.

@stale
Copy link

stale bot commented Jun 10, 2023

This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working dormant Marked by stale bot on close
Projects
None yet
Development

No branches or pull requests

2 participants