diff options
author | Lucius Hu <orctarorga@gmail.com> | 2020-01-19 22:53:32 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-01-21 22:11:20 (GMT) |
commit | 81e3db42f3212a8e441e4ecee9a2928921cb9045 (patch) | |
tree | 795b28ae5a2638e9c9ba723cfc09ca1d4d41e131 /templates/hooks--pre-commit.sample | |
parent | a7312d1a28ff3ab0a5a5427b35f01d943103cba8 (diff) | |
download | git-81e3db42f3212a8e441e4ecee9a2928921cb9045.zip git-81e3db42f3212a8e441e4ecee9a2928921cb9045.tar.gz git-81e3db42f3212a8e441e4ecee9a2928921cb9045.tar.bz2 |
templates: fix deprecated type option `--bool`
The `--bool` option to `git-config` is marked as historical, and users are
recommended to use `--type=bool` instead. This commit replaces all occurrences
of `--bool` in the templates.
Also note that, no other deprecated type options are found, including `--int`,
`--bool-or-int`, `--path`, or `--expiry-date`.
Signed-off-by: Lucius Hu <orctarorga@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'templates/hooks--pre-commit.sample')
-rwxr-xr-x | templates/hooks--pre-commit.sample | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/hooks--pre-commit.sample b/templates/hooks--pre-commit.sample index 6a75641..e144712 100755 --- a/templates/hooks--pre-commit.sample +++ b/templates/hooks--pre-commit.sample @@ -16,7 +16,7 @@ else fi # If you want to allow non-ASCII filenames set this variable to true. -allownonascii=$(git config --bool hooks.allownonascii) +allownonascii=$(git config --type=bool hooks.allownonascii) # Redirect output to stderr. exec 1>&2 |