You could just `throw 'No commits to push'` here...