Fix file_find and file_hash in gitfs. It prevents unnecessary file transfers due to wrong hash retruns to client.
Merge pull request #4376 from mou/fix_gitfs_hashing

Fix file_find and file_hash in gitfs.