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:
Marius Storm-Olsen
2011-05-04 12:41:59 -05:00
parent 1a9f4af89f
commit 30960ad5b8

View File

@@ -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 {