fixed failing operator when branch is in "detached HEAD" state