Closed azmodude closed 12 months ago
What is the output of
git status --ignored --porcelain=v2
in your source directory?
It's
git status --ignored --porcelain=v2
1 .M N... 100644 100644 100644 54276930d8aaf52fffff3c90e4aaae21beb3c7d5 54276930d8aaf52fffff3c90e4aaae21beb3c7d5 .chezmoi.toml.work.tmpl
1 .M N... 100644 100644 100644 7d84c798c4e58c9a13cd8ec8ab06e40ee7ca0bd7 7d84c798c4e58c9a13cd8ec8ab06e40ee7ca0bd7 readonly_dot_zshrc.tmpl
You have changes to tracked files that have not been added to the index. You need to git add
the files that you want to commit.
Oops, now I feel kind of embarrassed... I definitely thought I tried that earlier before posting this bug report, but obviously I did not. Adding the files to the index and then generating the commit-message works just fine.
Sorry for wasting your time and thanks for your work!
No worries! On reflection, I think chezmoi generate git-commit-message
should generate a commit message for the changes in the index and not fail in this case. I'll open a PR.
Describe the bug
Trying the newly implemented
chezmoi generate git-commit-message
fails withTo reproduce
Run
chezmoi generate git-commit-message
with just the default options for commits (read: none, template not modified) in~/.config/chezmoi/chezmoi.toml
.Expected behavior
Output a commit message with changes in source directory to be commited.
Output of command with the
--verbose
flagOutput of
chezmoi doctor
Additional context
Add any other context about the problem here.