mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/10767] Default to non-fatal behavior.
PHPBB3-10767
This commit is contained in:
@@ -14,9 +14,11 @@
|
|||||||
#
|
#
|
||||||
# You can configure whether invalid commit messages abort commits:
|
# You can configure whether invalid commit messages abort commits:
|
||||||
#
|
#
|
||||||
# git config phpbb.hooks.commit-msg.fatal true (abort, this is the default)
|
# git config phpbb.hooks.commit-msg.fatal true (abort)
|
||||||
# git config phpbb.hooks.commit-msg.fatal false (warn only, do not abort)
|
# git config phpbb.hooks.commit-msg.fatal false (warn only, do not abort)
|
||||||
#
|
#
|
||||||
|
# The default is to warn only.
|
||||||
|
#
|
||||||
# Warning/error messages use color by default if the output is a terminal
|
# Warning/error messages use color by default if the output is a terminal
|
||||||
# ("output" here is normally standard error when you run git commit).
|
# ("output" here is normally standard error when you run git commit).
|
||||||
# To force or disable the use of color:
|
# To force or disable the use of color:
|
||||||
@@ -26,11 +28,11 @@
|
|||||||
|
|
||||||
config_ns="phpbb.hooks.commit-msg";
|
config_ns="phpbb.hooks.commit-msg";
|
||||||
|
|
||||||
if [ "$(git config --bool $config_ns.fatal)" = "false" ]
|
if [ "$(git config --bool $config_ns.fatal)" = "true" ]
|
||||||
then
|
then
|
||||||
fatal=0;
|
|
||||||
else
|
|
||||||
fatal=1;
|
fatal=1;
|
||||||
|
else
|
||||||
|
fatal=0;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
debug_level=$(git config --int $config_ns.debug || echo 0);
|
debug_level=$(git config --int $config_ns.debug || echo 0);
|
||||||
|
Reference in New Issue
Block a user