Sign in
pigweed
/
third_party
/
github
/
bazelembedded
/
rules_cc_toolchain
/
refs/heads/upstream/fix_c_clang_tidy_bug
/
.
/
.githooks
/
post-commit
blob: 7c60900c4e3ce44894c51935f3da53a79b73c00f [
file
] [
log
] [
blame
] [
edit
]
#!/usr/bin/env bash
set
-
e
-
o pipefail
echo
"Ensuring commit message format."
LINTER_MESSAGE
=
$
(
git log
-
1
--
pretty
=%
B
|
./.
githooks
/
mandate
-
conventional
-
changelog
.
sh
)
if
[[
$LINTER_MESSAGE
]];
then
echo $LINTER_MESSAGE
exit
1
fi