Return Git root, not Git repository folder
Return Git root, not Git repository folder

Follow-up to e6c8b18, which works incorrectly e.g. for worktrees.
The issue found in IDEA-CR-21166

ThiagoGarciaAlves/intellij-community,vvv1559/intellij-community,xfournet/intellij-community,ibinti/intellij-community,mglukhikh/intellij-community,suncycheng/intellij-community,mglukhikh/intellij-community,da1z/intellij-community,suncycheng/intellij-community,vvv1559/intellij-community,suncycheng/intellij-community,apixandru/intellij-community,allotria/intellij-community,allotria/intellij-community,apixandru/intellij-community,ibinti/intellij-community,allotria/intellij-community,apixandru/intellij-community,asedunov/intellij-community,ThiagoGarciaAlves/intellij-community,apixandru/intellij-community,ThiagoGarciaAlves/intellij-community,da1z/intellij-community,vvv1559/intellij-community,asedunov/intellij-community,asedunov/intellij-community,xfournet/intellij-community,apixandru/intellij-community,mglukhikh/intellij-community,ThiagoGarciaAlves/intellij-community,xfournet/intellij-community,ibinti/intellij-community,ibinti/intellij-community,asedunov/intellij-community,vvv1559/intellij-community,asedunov/intellij-community,vvv1559/intellij-community,ibinti/intellij-community,vvv1559/intellij-community,apixandru/intellij-community,xfournet/intellij-community,mglukhikh/intellij-community,allotria/intellij-community,suncycheng/intellij-community,xfournet/intellij-community,allotria/intellij-community,ThiagoGarciaAlves/intellij-community,mglukhikh/intellij-community,ibinti/intellij-community,apixandru/intellij-community,mglukhikh/intellij-community,apixandru/intellij-community,mglukhikh/intellij-community,mglukhikh/intellij-community,ibinti/intellij-community,apixandru/intellij-community,suncycheng/intellij-community,vvv1559/intellij-community,da1z/intellij-community,mglukhikh/intellij-community,suncycheng/intellij-community,ibinti/intellij-community,allotria/intellij-community,allotria/intellij-community,asedunov/intellij-community,da1z/intellij-community,ibinti/intellij-community,xfournet/intellij-community,ThiagoGarciaAlves/intellij-community,xfournet/intellij-community,suncycheng/intellij-community,da1z/intellij-community,allotria/intellij-community,mglukhikh/intellij-community,xfournet/intellij-community,asedunov/intellij-community,da1z/intellij-community,asedunov/intellij-community,suncycheng/intellij-community,ibinti/intellij-community,asedunov/intellij-community,ThiagoGarciaAlves/intellij-community,asedunov/intellij-community,vvv1559/intellij-community,suncycheng/intellij-community,ThiagoGarciaAlves/intellij-community,vvv1559/intellij-community,vvv1559/intellij-community,da1z/intellij-community,allotria/intellij-community,xfournet/intellij-community,apixandru/intellij-community,da1z/intellij-community,xfournet/intellij-community,xfournet/intellij-community,xfournet/intellij-community,suncycheng/intellij-community,mglukhikh/intellij-community,da1z/intellij-community,ThiagoGarciaAlves/intellij-community,da1z/intellij-community,apixandru/intellij-community,allotria/intellij-community,allotria/intellij-community,apixandru/intellij-community,xfournet/intellij-community,asedunov/intellij-community,apixandru/intellij-community,ibinti/intellij-community,mglukhikh/intellij-community,da1z/intellij-community,ibinti/intellij-community,allotria/intellij-community,ThiagoGarciaAlves/intellij-community,mglukhikh/intellij-community,allotria/intellij-community,vvv1559/intellij-community,da1z/intellij-community,da1z/intellij-community,suncycheng/intellij-community,ThiagoGarciaAlves/intellij-community,ThiagoGarciaAlves/intellij-community,asedunov/intellij-community,asedunov/intellij-community,vvv1559/intellij-community,suncycheng/intellij-community,vvv1559/intellij-community,apixandru/intellij-community,ibinti/intellij-community