git-encrypt icon indicating copy to clipboard operation
git-encrypt copied to clipboard

git-encrypt on Windows

Open alucard2511 opened this issue 14 years ago • 4 comments

Is it important or not if I don't use the function encrypt diff in the script gitcrypt. I know it will generate the ugly difference bettween 2 version of the same file. But apart of this issue, does it influence anything else about the version history of the repository? Because for me, "encrypt diff" seem do not work on windows. when I run "git diff filename" with encrypt I have this error cat: $@: No such file or directory cat: $@: No such file or directory Thanks in advance for your answer.

alucard2511 avatar Nov 08 '11 09:11 alucard2511

Its very possible that git-encrypt does not work on Windows. The cat error probably comes from not having the openssl command available on the command line.

shadowhand avatar Nov 08 '11 19:11 shadowhand

Actually, I use msysgit on windows. And I work very well with the gitcrypt smudge and gitcript clean. It do perfectly the encryption. Just when I use git diff, this error appears. I think it may come from the variable $1 that you insert for the gitcrypt diff. In the 2 other parameter, there is not this variable.

alucard2511 avatar Nov 09 '11 08:11 alucard2511

You wouldn't see any errors at all unless the openssl call fails. Does running the following command cause an error?

openssl enc -d -base64 -aes-256-ecb -k "blahblahblah" -in "foo.txt"

shadowhand avatar Nov 09 '11 16:11 shadowhand

No, it doesn't cause any error. But when I run git diff , it does.

alucard2511 avatar Nov 09 '11 16:11 alucard2511