Skip to content

Commit

Permalink
Fix bug where we check maximum file sizes of deleted files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudi Kershaw committed Nov 11, 2019
1 parent ae4dbac commit 2cea460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-hooks/pre-commit-hooks/maximum-file-size.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ exec 1>&2
if ! git config --bool hooks.allowbigfiles ; then
toplevel=$(git rev-parse --show-toplevel)
maxsize=$(git config --int hooks.maxfilesize || echo 1000000)
git diff --name-only --cached | while read -r x; do too_big "$x"; done
git diff --name-only --diff-filter=ACM --cached | while read -r x; do too_big "$x"; done
fi

0 comments on commit 2cea460

Please sign in to comment.