forked from twpayne/chezmoi
-
Notifications
You must be signed in to change notification settings - Fork 1
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 traverse into ignored directories when adding files
- Loading branch information
Showing
7 changed files
with
43 additions
and
7 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
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,14 @@ | ||
# test that chezmoi add does not traverse into ignored directories | ||
chmod 000 $HOME/.dir/private | ||
exec chezmoi add $HOME${/}.dir | ||
stderr 'warning: ignoring .dir/private' | ||
cmp $CHEZMOISOURCEDIR/dot_dir/public/file golden/file | ||
|
||
-- golden/file -- | ||
# contents of .dir/public/file | ||
-- home/user/.dir/private/file -- | ||
# contents of .dir/private/file | ||
-- home/user/.dir/public/file -- | ||
# contents of .dir/public/file | ||
-- home/user/.local/share/chezmoi/.chezmoiignore -- | ||
.dir/private |