;bin:hledger-git: run pass-through commands in the right repo

This commit is contained in:
Simon Michael 2025-02-27 17:10:44 -10:00
parent 956a2f6565
commit 97f831f741

View File

@ -112,5 +112,5 @@ if [[ "$1" == "-h" || "$1" == "--help" || $# == 0 ]]; then usage
elif declare -f "$1" > /dev/null; then "$@"
else
ensure_git
$GIT "$@"
$GIT -C "$DIR" "$@"
fi