mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-01 11:17:27 +08:00
Remove whole submodule section
Not removing the whole section will leave residue sections in the config file when reinitiating the submodules Reviewed-by: axis
This commit is contained in:
@@ -107,8 +107,8 @@ if (`git config --get submodule.qtbase.url`) {
|
||||
if ($force) {
|
||||
my @configresult = `git config -l`;
|
||||
foreach (@configresult) {
|
||||
if (/(submodule\.[^.=]+\.url)=.*/) {
|
||||
system_v("git config --unset $1");
|
||||
if (/(submodule\.[^.=]+)\.url=.*/) {
|
||||
system_v("git config --remove-section $1");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user