From: Yann Dirson Date: Tue, 20 Feb 2007 00:14:13 +0000 (+0100) Subject: Various cleanups for clarity. X-Git-Tag: v0.14.3~324 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/09340f5f9daadc37204f8e13e668af7c02fc1814 Various cleanups for clarity. Signed-off-by: Yann Dirson --- diff --git a/stgit/stack.py b/stgit/stack.py index dc6caa6..3185d64 100644 --- a/stgit/stack.py +++ b/stgit/stack.py @@ -518,8 +518,6 @@ class Series(StgitObject): def init(self, create_at=False, parent_remote=None, parent_branch=None): """Initialises the stgit series """ - bases_dir = os.path.join(self.__base_dir, 'refs', 'bases') - if os.path.exists(self.__patch_dir): raise StackException, self.__patch_dir + ' already exists' if os.path.exists(self.__refs_dir): @@ -534,7 +532,7 @@ class Series(StgitObject): self.set_parent(parent_remote, parent_branch) - create_dirs(bases_dir) + create_dirs(os.path.join(self.__base_dir, 'refs', 'bases')) self.create_empty_field('applied') self.create_empty_field('unapplied')