handling empty commit log (fixed #3)