I installed hledger-git and while looking through the script I noticed record calls git record ....
| record() { | |
| ensure_git | |
| ensure_git_repo | |
| cd "$DIR" | |
| for F in $FILES; do $GIT add -f "$F"; done | |
| MSG=${1:-$(date +'%Y-%m-%d %H:%M:%S %Z')}; shift | |
| $GIT record -m "$MSG" "$@" -- "$FILES" | |
| } |
Should it call git commit instead on line 78?
To reproduce (with hledger-git installed):
⟩ hledger git record "test"
git: 'record' is not a git command. See 'git --help'.
The most similar command is
restore
(same with hledger-git record "test")
I'm on macOS, and I think hledger version isn't relevant here since the issue seems to be in the add on script.