chiark / gitweb /
Fix stack deletion when orig-base is present.
[stgit] / stgit / stack.py
index 9dd5ec72a2411e585dfe957b3dacdde29409ce97..12110aa8fac65573bafa7753ec7ced1abf620bfe 100644 (file)
@@ -676,6 +676,8 @@ class Series(StgitObject):
                 os.remove(self.__current_file)
             if os.path.exists(self.__descr_file):
                 os.remove(self.__descr_file)
+            if os.path.exists(self._dir()+'/orig-base'):
+                os.remove(self._dir()+'/orig-base')
             if not os.listdir(self.__patch_dir):
                 os.rmdir(self.__patch_dir)
             else: