fix garbage info in gitcommit window.