Just renaming the branch.branchname section doesn't rename the
branch.branchname.stgit section -- we have to do that explicitly.
This fixes bug 9692.
Signed-off-by: Karl Hasselström <kha@treskal.com>
self.get_name(), to_stack.get_name())
# Rename the config section
self.get_name(), to_stack.get_name())
# Rename the config section
- config.rename_section("branch.%s" % self.get_name(),
- "branch.%s" % to_name)
+ for k in ['branch.%s', 'branch.%s.stgit']:
+ config.rename_section(k % self.get_name(), k % to_name)