From 7a4184e9367df0010140134c646121b84c7c4731 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 5 Sep 2025 14:15:52 -0400 Subject: Fix fmt spacing The -s and -u flags tell fmt to fill the paragraph by merging lines. Without this, fmt might just add line breaks, and this is no good. --- Omni/Ide/hooks/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Omni') diff --git a/Omni/Ide/hooks/commit-msg b/Omni/Ide/hooks/commit-msg index d77ec84..c15b4a1 100755 --- a/Omni/Ide/hooks/commit-msg +++ b/Omni/Ide/hooks/commit-msg @@ -1,6 +1,6 @@ #!/usr/bin/env bash temp=$(mktemp) -fmt -w 72 -s "$1" > "$temp" +fmt -w 72 -u "$1" > "$temp" mv "$temp" "$1" if ! gitlint --ignore-stdin --staged --msg-filename "$1" run-hook; then backup="$CODEROOT"/.git/COMMIT_EDITMSG.backup -- cgit v1.2.3