[UI] Tweak git branch switching code to pull after checkout