]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Handle non default git prefix configurations
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 7 Jul 2025 15:05:44 +0000 (17:05 +0200)
committerAlexander Monakov <amonakov@ispras.ru>
Tue, 8 Jul 2025 11:29:58 +0000 (14:29 +0300)
Mklog parses the diff content from prepare-commit-msg hook but fails
when git has been configured with mnemonicPrefix. Forcing the default
values for the prefixes would set a distinct diff configuration supported
by mklog and prevent most failures.

contrib/ChangeLog:

* prepare-commit-msg: Force default git prefixes.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
contrib/prepare-commit-msg

index 1b878772dcc4dfeac1e58240352469d78a0aede9..75d102559c78074f0a40f494f3c3ce0fa4f1bc1e 100755 (executable)
@@ -78,4 +78,4 @@ else
     tee="cat"
 fi
 
-git $cmd | $tee | git gcc-mklog -c "$COMMIT_MSG_FILE"
+git $cmd --default-prefix | $tee | git gcc-mklog -c "$COMMIT_MSG_FILE"