returns 'no commits' if user tries to look at commits when there are none