AGWA / git-crypt

Transparent file encryption in git
https://www.agwa.name/projects/git-crypt/
GNU General Public License v3.0
8.1k stars 472 forks source link

After new release git 2.39.1 ubuntu version git-crypt not working merge command #273

Open viniciustrainottiobjective opened 1 year ago

viniciustrainottiobjective commented 1 year ago

Hi,

After to updated git version to 2.39.1 ubuntu focal version the git-crypt not working for merge command.

> GIT_CURL_VERBOSE=1 GIT_TRACE=1 git merge master
14:35:12.818355 git.c:460               trace: built-in: git merge master
14:35:12.998825 run-command.c:655       trace: run_command: '"git-crypt" clean'
14:35:13.003634 git.c:460               trace: built-in: git rev-parse --git-dir
14:35:13.008099 run-command.c:655       trace: run_command: git stash create
14:35:13.010771 git.c:460               trace: built-in: git stash create
14:35:13.017251 run-command.c:655       trace: run_command: '"git-crypt" clean'
14:35:13.022418 git.c:460               trace: built-in: git rev-parse --git-dir
fatal: stash failed

My config .git/config file

[...]
[filter "git-crypt"]
    smudge = \"git-crypt\" smudge
    clean = \"git-crypt\" clean
    required = true
[diff "git-crypt"]
    textconv = \"git-crypt\" diff
[...]

Any idea for bug git-crypt?

viniciustrainottiobjective commented 1 year ago

I don't see tests in repo for compatibilites for git 2.39.1, anyone know if exists problem in this version for git-crypt?

sjagoe commented 1 year ago

I've had issues on a large repository, but have not yet been able to produce a reliable demonstration of the issue with a non-critical repository.

ebuildy commented 1 year ago

could you try to rebase instead merge ? In my case, this is a bug because an encrypted file have been removed from the target branch

julien-sarazin commented 1 year ago

Same problem here, on Mac OS Ventura 13.4 git version 2.41.0 git-crypt 0.7.0

anero commented 11 months ago

I was having a similar problem when attempting to merge my trunk branch into a branch where I'd added git-crypt. In case it's useful for somebody else, for me it was fixed when I locked the files before running the merge.

julien-sarazin commented 11 months ago

FINALLY! Thanks a lot, @anero! You're the man 👍