-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Don't attempt to add entries in external_ directories
- Loading branch information
Showing
4 changed files
with
49 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# test that chezmoi add does not add files in external_ directories | ||
! exec chezmoi add $HOME${/}.external/file | ||
stderr 'cannot add entry in external_ directory' | ||
|
||
# test that chezmoi add does not add files in subdirectories of external_ directories | ||
! exec chezmoi add $HOME${/}.external/dir/file | ||
stderr 'cannot add entry in external_ directory' | ||
|
||
-- home/user/.external/dir/file -- | ||
# contents of .external/dir/file | ||
-- home/user/.external/file -- | ||
# contents of .external/file | ||
-- home/user/.local/share/chezmoi/external_dot_external/.keep -- |