icefox/git-hooks — pull request #5 by jdunck (2011-10-19 19:34:30+00:00)
Title: Gitkeep and reinstall

I tweaked darwin find in list_hooks_in_dir to use -perm since it's a closer analog to the gnu approach -
I ran into this problem since I made empty dirs and added .gitkeep files to it (a common practice to make git hold on to empty dirs) and the find was finding these and trying to execute them.

I also made it so that running --install repeatedly on the same repo wouldn't repeatedly move the existing hooks to hooks.old.