Extract commit info for worksession time
Handles 'out of repository' error