chiark / gitweb /
Fix removal of series to nuke the formatversion config item.
authorYann Dirson <ydirson@altern.org>
Wed, 6 Jun 2007 21:05:22 +0000 (23:05 +0200)
committerCatalin Marinas <catalin.marinas@gmail.com>
Thu, 7 Jun 2007 21:46:12 +0000 (22:46 +0100)
Since this parameter is now used to decide if the branch has already
been initialised, not removing it forbids to create a stack with the
same name as one that was deleted.

Signed-off-by: Yann Dirson <ydirson@altern.org>
stgit/stack.py

index a6d16f2ed790b392011c7096a6ddfe07f2ad4622..f4782a42b619821625c11002c361e0048dde4b9e 100644 (file)
@@ -719,6 +719,7 @@ class Series(StgitObject):
         config.unset('branch.%s.remote' % self.__name)
         config.unset('branch.%s.merge' % self.__name)
         config.unset('branch.%s.stgit.parentbranch' % self.__name)
+        config.unset('branch.%s.stgitformatversion' % self.__name)
 
     def refresh_patch(self, files = None, message = None, edit = False,
                       show_patch = False,