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

Fix handling of double-quotes in encrypted file names #173 #174

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

jmurty
Copy link
Collaborator

@jmurty jmurty commented Oct 22, 2023

See issue #173

- Add `_list_encrypted_files()` function that returns get un-quoted
  filenames for encrypted files by using the `-z` option to Git's
  `ls-files` command, with follow-on special handling
- Use this function instead of long piped commands previously used
  to list encrypted filenames, which failed if these names contained
  double-quote characters due to the insufficient work-around of
  unsetting the `core.quotePath` config option.
Mainly to trigger test run in GitHub
Had to cheat a bit with this fix, by relaxing the unit tests to allow
`ls-crypt` and `ls-crypt-default` to work the same way, where they
didn't previously
@andreineculau
Copy link
Collaborator

Nice patch! This fixes also another bug where transcrypt --list would list filenames containing the word crypt, rather than having the filter crypt.

@ctapobep
Copy link

ctapobep commented Oct 30, 2024

Does this also fix the names with the whitespaces (transcrypt creates extra files during rekeying)? Will it be released soon? It's been a year..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants