Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
git-hook-template: Conditionally add '.envrc.repo' to the SENSITIVE_FILES check if '.envrc' exists
✓ CI success Adrian Duke committed 16 days ago
commit 4e480e603fe8f0da32fa00dd1a579e01f8e835a0
parent 616f584a4b48f78794f2aa3ff49f8617bd635aee
1 passed (1 total) View logs
1 file changed +6 -1
modified scripts/git-hook-template.sh
@@ -9,7 +9,12 @@ then
    exit 1
fi

-
readonly SENSITIVE_FILES=("justfile" "build.rs" "rust-toolchain.toml")
+
SENSITIVE_FILES=("justfile" "build.rs" "rust-toolchain.toml")
+
if [ -f ".envrc" ]; then
+
    SENSITIVE_FILES+=(".envrc.repo")
+
fi
+
readonly SENSITIVE_FILES
+

readonly BASE_BRANCH="master"

# Check which files were modified compared to the base branch.