3 Star 12 Fork 2

Git工具集/git-lfs

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
t-install-custom-hooks-path-unsupported.sh 661 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/vcs-all-in-one/git-lfs.git
git@gitee.com:vcs-all-in-one/git-lfs.git
vcs-all-in-one
git-lfs
git-lfs
master

搜索帮助