From 09340f5f9daadc37204f8e13e668af7c02fc1814 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Tue, 20 Feb 2007 01:14:13 +0100 Subject: [PATCH] Various cleanups for clarity. Signed-off-by: Yann Dirson --- stgit/stack.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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') -- 2.11.0