diff options
author | Lucius Hu <orctarorga@gmail.com> | 2020-01-20 01:53:32 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-01-22 01:11:20 +0300 |
commit | 81e3db42f3212a8e441e4ecee9a2928921cb9045 (patch) | |
tree | 795b28ae5a2638e9c9ba723cfc09ca1d4d41e131 /templates/hooks--update.sample | |
parent | a7312d1a28ff3ab0a5a5427b35f01d943103cba8 (diff) |
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--update.sample')
-rwxr-xr-x | templates/hooks--update.sample | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/hooks--update.sample b/templates/hooks--update.sample index 80ba94135c..5014c4b31c 100755 --- a/templates/hooks--update.sample +++ b/templates/hooks--update.sample @@ -43,11 +43,11 @@ if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then fi # --- Config -allowunannotated=$(git config --bool hooks.allowunannotated) -allowdeletebranch=$(git config --bool hooks.allowdeletebranch) -denycreatebranch=$(git config --bool hooks.denycreatebranch) -allowdeletetag=$(git config --bool hooks.allowdeletetag) -allowmodifytag=$(git config --bool hooks.allowmodifytag) +allowunannotated=$(git config --type=bool hooks.allowunannotated) +allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) +denycreatebranch=$(git config --type=bool hooks.denycreatebranch) +allowdeletetag=$(git config --type=bool hooks.allowdeletetag) +allowmodifytag=$(git config --type=bool hooks.allowmodifytag) # check for no description projectdesc=$(sed -e '1q' "$GIT_DIR/description") |