From 85289c08d9f5f76813a93daa23d63ea88e73956f Mon Sep 17 00:00:00 2001 Message-Id: <85289c08d9f5f76813a93daa23d63ea88e73956f.1746660883.git.mdw@distorted.org.uk> From: Mark Wooding Date: Fri, 16 Mar 2007 22:45:45 +0000 Subject: [PATCH] Cleanup parent information on stgit branch deletion. Organization: Straylight/Edgeware From: Yann Dirson Signed-off-by: Yann Dirson --- stgit/stack.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stgit/stack.py b/stgit/stack.py index f188db4..a726cb5 100644 --- a/stgit/stack.py +++ b/stgit/stack.py @@ -702,6 +702,13 @@ class Series(StgitObject): remove_file_and_dirs( os.path.join(self.__base_dir, 'refs', 'bases'), self.__name) + # Cleanup parent informations + # FIXME: should one day make use of git-config --section-remove, + # scheduled for 1.5.1 + config.unset('branch.%s.remote' % self.__name) + config.unset('branch.%s.merge' % self.__name) + config.unset('branch.%s.stgit.parentbranch' % self.__name) + def refresh_patch(self, files = None, message = None, edit = False, show_patch = False, cache_update = True, -- [mdw]