git-gui: Fix detaching current branch during checkout