Git: allow the user to set the repository path by selecting the .git folder itself or its parent folder