Skip to content

Commit 98b7b44

Browse files
committed
Add no-commit-id as suggested by @mzzmjd
1 parent 8a51250 commit 98b7b44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre-receive-hooks/block_confidentials.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ while read oldrev newrev refname; do
6161
# ----------------------------------------------------------------------------
6262
for sha1 in ${span}; do
6363
# Use extended regex to search for a match
64-
match=`git diff-tree -r -p --no-color --diff-filter=d ${sha1} | grep -nE "(${regex})"`
64+
match=`git diff-tree -r -p --no-color --no-commit-id --diff-filter=d ${sha1} | grep -nE "(${regex})"`
6565

6666
# Verify its not empty
6767
if [ "${match}" != "" ]; then

0 commit comments

Comments
 (0)