Skip to content

Commit

Permalink
Add no-commit-id as suggested by @mzzmjd
Browse files Browse the repository at this point in the history
  • Loading branch information
stoe committed Sep 27, 2018
1 parent 8a51250 commit 98b7b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pre-receive-hooks/block_confidentials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ while read oldrev newrev refname; do
# ----------------------------------------------------------------------------
for sha1 in ${span}; do
# Use extended regex to search for a match
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})"`

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

0 comments on commit 98b7b44

Please sign in to comment.