Merge branch 'lh/bool-to-type-bool'
Replace "git config --bool" calls with "git config --type=bool" in sample templates. * lh/bool-to-type-bool: templates: fix deprecated type option `--bool`
This commit is contained in:
@ -16,7 +16,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# If you want to allow non-ASCII filenames set this variable to true.
|
# 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.
|
# Redirect output to stderr.
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
|
@ -43,11 +43,11 @@ if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# --- Config
|
# --- Config
|
||||||
allowunannotated=$(git config --bool hooks.allowunannotated)
|
allowunannotated=$(git config --type=bool hooks.allowunannotated)
|
||||||
allowdeletebranch=$(git config --bool hooks.allowdeletebranch)
|
allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch)
|
||||||
denycreatebranch=$(git config --bool hooks.denycreatebranch)
|
denycreatebranch=$(git config --type=bool hooks.denycreatebranch)
|
||||||
allowdeletetag=$(git config --bool hooks.allowdeletetag)
|
allowdeletetag=$(git config --type=bool hooks.allowdeletetag)
|
||||||
allowmodifytag=$(git config --bool hooks.allowmodifytag)
|
allowmodifytag=$(git config --type=bool hooks.allowmodifytag)
|
||||||
|
|
||||||
# check for no description
|
# check for no description
|
||||||
projectdesc=$(sed -e '1q' "$GIT_DIR/description")
|
projectdesc=$(sed -e '1q' "$GIT_DIR/description")
|
||||||
|
Reference in New Issue
Block a user