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