votizen/git-hooks — comment on commit c34b35f15143d84cb564de6593185edf7124d9e4
File:  line 0
By icefox:

Thanks, due to a number of issues with this function I simplified it to 09b39381ecff895d4b3d6f340390ae71af727f2a which also does what you suggested (just use -perm)