git-gui: Correctly report failures from git-write-tree