Item11267: Git pre-commit hook reads wrong file

Reads $file instead of $tidyFile.

git-svn-id: http://svn.foswiki.org/trunk@17779 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
Item10475:  Assert if no attachment name provided

git-svn-id: http://svn.foswiki.org/trunk@17780 0b4bb1d4-4e5a-0410-9cc4-b2b747904278