tg-update: check for detached state of current branch