def setUp(self): os.putenv("GIT_DIR", git_dir) os.putenv("GIT_WORK_TREE", working_dir) execute("git init") setup = Setup(project_folder, working_dir, git_dir) setup.run() self.config = Config(working_dir) self.path = Path(self.config) self.parser = Parser(self.config) self.changelog_abspath = self.path.get_changelog_abspath() self.git_dir =self.path.get_git_dir()
def setUp(self): # Make sure we're not going to clobber someone's existing repo remove_git_repo(changelog_abspath) os.putenv("GIT_DIR", git_dir) os.putenv("GIT_WORK_TREE", working_dir) execute("git init") setup = Setup(project_folder, working_dir, git_dir) setup.run() self.config = Config(working_dir) self.path = Path(self.config) self.changelog = ChangeLog(working_etc) self.changelog.initialize(self.config)