Skip to content

Commit

Permalink
better support for git worktree
Browse files Browse the repository at this point in the history
  • Loading branch information
andreineculau authored Nov 5, 2024
1 parent e514010 commit 616f2fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transcrypt
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ save_configuration() {

# write the filter settings. Sorry for the horrific quote escaping below...
# shellcheck disable=SC2016
transcrypt_path='"$(git config transcrypt.crypt-dir 2>/dev/null || printf %s/crypt ""$(git rev-parse --git-dir)"")"/transcrypt'
transcrypt_path='"$(git config transcrypt.crypt-dir 2>/dev/null || printf %s/crypt ""$(git rev-parse --git-common-dir)"")"/transcrypt'

# Ensure filter attributes are always set for the default (unspecified) context
git config filter.crypt.clean "$transcrypt_path clean context=default %f"
Expand Down

0 comments on commit 616f2fb

Please sign in to comment.