commit hook fixes
Merge pull request #2840 from kurund/git-hook-fixes

commit hook fixes