-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Silent failure when adding a directory without --recursive
#668
Comments
I'm currently unable to reproduce this on any other system (I've tried Ubuntu/snap and macOS/homebrew), and have added a specific test for it in #670, which passes on Ubuntu, macOS, and Windows. I notice that the output of
Is it possible that snap is not running chezmoi correctly on your machine? Please could you try running the
Does the bug still occur without snap? |
OK, I now understand what is going on here. What's happening is:
|
Describe the bug
chezmoi add
should warn when adding a directory without--recursive
.To reproduce
No output, no error.
Nothing added!
Expected behavior
Two possible fixes:
-r
optionThis is the default Git behavior.
As
chezmoi
andgit
share same command nameadd
many coders expect this second behavior.Therefore
-r
option becomes implicit (and may become deprecated).Output of
chezmoi doctor
Additional context
I am using Fedora 31 and currently comparing
chezmoi
,yadm
anddotdrop
: https://github.com/olibre/GreatPractices#dotfiles-managersThe text was updated successfully, but these errors were encountered: