fix show commit log before commit