Proper error handling for when a git repo doesn't have a commit yet