diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2023-06-28 17:15:06 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2023-06-28 17:15:06 -0400 |
commit | 41d937d2c03502c31c4366e75ebe5dbcf7b0d906 (patch) | |
tree | c47d12696968d9cd308abae80f81e2c389933b99 /build.sh | |
parent | ab6fd15d6184e3aab69f1bef0fb98c2d3d257408 (diff) |
SL-18837: Don't try to engage git-hooks explicitly at all.
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -328,9 +328,13 @@ then pip install -r "$(native_path "$git_hooks_reqs")" || \ fatal "pip install git-hooks failed" fi - # validate the branch we're about to build - python_cmd "$git_hooks_checkout/coding_policy_git.py" --all_files || \ - fatal "coding policy check failed" + git_hooks_script="$git_hooks_checkout/coding_policy_git.py" + if [[ -r "$(shell_path "$git_hooks_script")" ]] + then + # validate the branch we're about to build + python_cmd "$(native_path "$git_hooks_script")" --all_files || \ + fatal "coding policy check failed" + fi fi end_section "coding policy check" |