git: don't fail if couldn't resolve the HEAD, refresh the whole root then
git: don't fail if couldn't resolve the HEAD, refresh the whole root then

As a part of IDEA-221003

GitOrigin-RevId: 7bfbaff36039bacd8c45e61aab4b811a60e86d82
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community