Exit upgrade.py early if old and new commit are the same