From: Yann Dirson Date: Fri, 16 Mar 2007 22:45:45 +0000 (+0000) Subject: Cleanup parent information on stgit branch deletion. X-Git-Tag: v0.13~112 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/85289c08d9f5f76813a93daa23d63ea88e73956f Cleanup parent information on stgit branch deletion. Signed-off-by: Yann Dirson --- 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,