git-gui: Change prior tree SHA-1 verification to use git_read