代码拉取完成,页面将自动刷新
#!/usr/bin/env bash
. "$(dirname "$0")/testlib.sh"
# These tests rely on behavior found in Git versions less than 2.9.0 to perform
# themselves, specifically:
# - lack of core.hooksPath support
ensure_git_version_isnt $VERSION_HIGHER "2.9.0"
begin_test "install with unsupported core.hooksPath"
(
set -e
repo_name="unsupported-custom-hooks-path"
git init "$repo_name"
cd "$repo_name"
hooks_dir="custom_hooks_dir"
mkdir -p "$hooks_dir"
git config --local core.hooksPath "$hooks_dir"
git lfs install 2>&1 | tee install.log
grep "Updated git hooks" install.log
[ ! -e "$hooks_dir/pre-push" ]
[ -e ".git/hooks/pre-push" ]
)
end_test
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。