When refreshing, detect if a commit message is ongoing, and save it. Write it to EDIT_COMMITMSG is not a good lead.