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

If git-write-tree fails (such as if the index file is currently
locked and it wants to write to it) we were not getting the error
message as $tree_id was always the empty string so we shortcut
through the catch and never got the output from stderr.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
1 file changed
tree: ec1f6468c21b4ddff7a488c4453c82ed0bbdef7b
  1. lib/
  2. .gitignore
  3. git-gui.sh
  4. GIT-VERSION-GEN
  5. Makefile