Sign in
pigweed
/
third_party
/
github
/
bazelembedded
/
rules_cc_toolchain
/
f6f84b77fdef282e53ed52c0c7fd01e0d1e7dd43
/
.
/
.githooks
/
post-commit
blob: 7c60900c4e3ce44894c51935f3da53a79b73c00f [
file
] [
log
] [
blame
]
#!/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