fix(tooling): commit hook-restaged file contents

This commit is contained in:
Vincent Koc
2026-04-12 05:19:13 +01:00
parent a45c4bebc5
commit 0acfa47e08
2 changed files with 28 additions and 2 deletions

View File

@@ -216,11 +216,11 @@ fi
committed=false
if [ "$fast_commit" = true ]; then
declare -a commit_env=(FAST_COMMIT=1)
if run_git_with_lock_retry "commit" env "${commit_env[@]}" git commit -m "$commit_message" -- "${files[@]}"; then
if run_git_with_lock_retry "commit" env "${commit_env[@]}" git commit -m "$commit_message"; then
committed=true
fi
else
if run_git_with_lock_retry "commit" git commit -m "$commit_message" -- "${files[@]}"; then
if run_git_with_lock_retry "commit" git commit -m "$commit_message"; then
committed=true
fi
fi