We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a51250 commit 98b7b44Copy full SHA for 98b7b44
pre-receive-hooks/block_confidentials.sh
@@ -61,7 +61,7 @@ while read oldrev newrev refname; do
61
# ----------------------------------------------------------------------------
62
for sha1 in ${span}; do
63
# Use extended regex to search for a match
64
- match=`git diff-tree -r -p --no-color --diff-filter=d ${sha1} | grep -nE "(${regex})"`
+ match=`git diff-tree -r -p --no-color --no-commit-id --diff-filter=d ${sha1} | grep -nE "(${regex})"`
65
66
# Verify its not empty
67
if [ "${match}" != "" ]; then
0 commit comments