c446eece2e
We convert a few messages output by the various commands to use the capitalized "Git" project name instead of the lowercase variant, which will make them consistent with how the Git project name appears in other messages elsewhere. Note that some of these messages are not yet passed as translation strings, but we will address that issue in a subsequent commit.
30 lines
661 B
Bash
Executable File
30 lines
661 B
Bash
Executable File
#!/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
|