We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e29098 commit 677d8d3Copy full SHA for 677d8d3
.git-hooks/pre-push
@@ -155,8 +155,7 @@ while read local_ref local_sha remote_ref remote_sha; do
155
fi
156
157
# Hardcoded personal paths (/Users/foo/, /home/foo/, C:\\Users\\foo\\).
158
- # Skip binary files — compiled binaries contain build-machine paths.
159
- if [ "$is_binary" = false ] && echo "$file_text" | grep -qE '(/Users/[^/\s]+/|/home/[^/\s]+/|C:\\Users\\[^\\]+\\)'; then
+ if echo "$file_text" | grep -qE '(/Users/[^/\s]+/|/home/[^/\s]+/|C:\\Users\\[^\\]+\\)'; then
160
printf "${RED}✗ BLOCKED: Hardcoded personal path found in: %s${NC}\n" "$file"
161
echo "$file_text" | grep -nE '(/Users/[^/\s]+/|/home/[^/\s]+/|C:\\Users\\[^\\]+\\)' | head -3
162
ERRORS=$((ERRORS + 1))
0 commit comments