diff options
author | Marius Storm-Olsen <marius.storm-olsen@nokia.com> | 2011-05-04 12:41:59 -0500 |
---|---|---|
committer | Marius Storm-Olsen <marius.storm-olsen@nokia.com> | 2011-05-05 10:38:31 -0500 |
commit | 30960ad5b83a0eceeddc95ccdb002013187b2669 (patch) | |
tree | 22d873a7e24452e204e74ccef3827e6b0c67444f /init-repository | |
parent | 1a9f4af89f03438a049f01c242ad20e8506ac738 (diff) |
Remove whole submodule section
Not removing the whole section will leave residue
sections in the config file when reinitiating the
submodules
Reviewed-by: axis
Diffstat (limited to 'init-repository')
-rwxr-xr-x | init-repository | 4 |
1 files 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 { |