Skip to content

Commit

Permalink
chore: snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Aug 5, 2024
1 parent d6b20c3 commit 40a1ed3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/cmd/testdata/scripts/issue3887.txtar
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[!exec:age] skip 'age not found in path'

mkageconfig
mkgitconfig
prependline ${CHEZMOICONFIGDIR}/chezmoi.toml 'edit.command = "/bin/true"'

# add an initial encrypted file
exec chezmoi init
Expand All @@ -9,11 +10,12 @@ exec chezmoi git add .
exec chezmoi git commit -- -m 'initial commit' .

# test that chezmoi edit on an encrypted file with no changes does not change the ciphertext
prependline ${CHEZMOICONFIGDIR}/chezmoi.toml 'edit.command = "true"'
exec chezmoi edit ${HOME}${/}.encrypted
exec chezmoi diff
! stdout .
exec chezmoi git diff
! stdout .

-- home/user/.encrypted --
plaintext
plaintext

0 comments on commit 40a1ed3

Please sign in to comment.