Fix: make sure git hf update always returns to the right branch after an update