Fix to prevent hash collisions for commits and commit_files