Hooks: Simplify deny_binary commit iteration logic
This commit is contained in:
@@ -52,8 +52,7 @@ while read oldrev newrev refname; do
|
||||
fi
|
||||
|
||||
# Loop over each commit.
|
||||
for commit in $(git rev-list --objects ${rev_range} |
|
||||
git cat-file --batch-check='%(objectname) %(objecttype) %(objectsize) %(rest)' | grep commit | awk '{print $1}'); do
|
||||
for commit in $(git rev-list --objects ${rev_range} --filter=object:type=commit); do
|
||||
|
||||
# Get list of potentially binary files in this commit
|
||||
mapfile -t binary_files < <(
|
||||
|
||||
Reference in New Issue
Block a user