La configuration est correcte, je un dépôt git parent sur le dossier D:\
, avec le sous-module Packages/ANSIescape
, alors que j'ai aussi un dépôt git sans rapport avec le dossier D:\Packages
.Comment désactiver ce message `Une configuration de zone d'administration à risque d'erreur 'sur le client Smartgit?
1/73: The submodule at 'Packages/ANSIescape' has an error-prone admin area configuration.
For the submodule at Packages/ANSIescape the .git-admin directory is not located below D:\Packages\.git, but at D:\.git\modules\Packages\ANSIescape instead.
This indicates an error-prone configuration and will most likely result in confusion and strange behavior. You should re-done the submodule from scratch.
Ce message ralentit beaucoup pour ouvrir le sous-module, il garde compter 1 par seconde jusqu'à ce qu'il soit sur 73 sous-modules, je l'avais installé dans le dossier:
Je suis obéi à cliquer avec ma souris 73 fois sur le bouton de fermeture, sinon ces messages ne s'éteignent jamais. Et ils entrent toujours, quand j'ouvre le dépôt.
Mise à jour
Il y a ce script qui reproduit la même structure du référentiel. Vous avez juste besoin de courir et ouvrir le référentiel sur SmartGit, et il pointera l'erreur:
# Create the directory structure
mkdir main_repo
mkdir main_repo/unrelated_repo
mkdir main_repo/unrelated_repo/main_repo_submodule
cd main_repo
# Setup the unrelated_repo
cd unrelated_repo
printf "# UnRelated Repository\n\n" > README.md
git init
git add -f README.md
git commit -m "Added the unrelated repository first commit."
git remote add origin https://github.com/user/unrelated_repo
# Setup the main_repo_submodule
cd main_repo_submodule
printf "# This is a submodule from the \`main_repo\`, and not from the \`unrelated_repo\`\n" > README.md
git init
git add -f README.md
git commit -m "Added the main repository submodule first commit."
git remote add origin https://github.com/user/main_repo_submodule
# Setup the main_repo
cd ../..
printf "# Main Repo\n\nThis is the main repository which contains submodules\n" > README.md
printf "\nThis is a main_repo_file on the unrelated repository\n\n" > unrelated_repo/main_repo_file.txt
printf "\n*\n**\n\n" > unrelated_repo/.gitignore
git init
git add -f README.md unrelated_repo/main_repo_file.txt unrelated_repo/.gitignore
git submodule add -f -- https://github.com/user/main_repo_submodule "unrelated_repo/main_repo_submodule"
git commit -m "Added the first main repository first commit."
git remote add origin https://github.com/user/main_repo
# Move the submodule to the parent repository
mkdir -p .git/modules
mv unrelated_repo/main_repo_submodule/.git/ .git/modules/main_repo_submodule
printf "gitdir: ../../.git/modules/main_repo_submodule\n" > unrelated_repo/main_repo_submodule/.git