git-info: show commit when not on a branch