gnustavo/Git-Hooks — pull request #7 by mikkoi (2014-11-30 22:38:47+00:00)
Title: Change Temp File Naming

Some file checkers, e.g. PerlCritic and Python Lint complain of invalid filenames. We should preserve the file name and path when initiating the Git::Hooks::CheckFile arguments.

Instead of copying the changed files to file like '/tmp/qwertyuipo', we create a dir like '/tmp/qwertyuipo' and copy the changed file there, e.g. '/tmp/qwertyuipo/dir/path/filename.txt'.