Fixed warning to not update when there are uncommitted changes.

Before we were only warning the user if there were unstashed changes.