From 30960ad5b83a0eceeddc95ccdb002013187b2669 Mon Sep 17 00:00:00 2001 From: Marius Storm-Olsen Date: Wed, 4 May 2011 12:41:59 -0500 Subject: [PATCH] Remove whole submodule section Not removing the whole section will leave residue sections in the config file when reinitiating the submodules Reviewed-by: axis --- init-repository | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init-repository b/init-repository index a0bef71a..fc492edd 100755 --- a/init-repository +++ b/init-repository @@ -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 {