From 3b045a2cef9972c7ed068f1f55a645307406e6ec Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 30 Aug 2024 14:16:43 -0700 Subject: [PATCH] cleanup --- aider/__init__.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/aider/__init__.py b/aider/__init__.py index 6717d291e..dc436214f 100644 --- a/aider/__init__.py +++ b/aider/__init__.py @@ -1,24 +1 @@ __version__ = "0.54.9-dev" - - -# This is disabled. Git pre-push hooks won't pick up a new commit with the hash. - -"""[[[cog -import subprocess - -try: - git_hash = subprocess.check_output( - ['git', 'rev-parse', '--short=7', 'HEAD'], - universal_newlines=True, - ).strip() -except subprocess.CalledProcessError: - git_hash = None - -cog.out(f'git_hash = "{git_hash}"') -]]]""" -git_hash = None -"""[[[end]]]""" - -if "-dev" in __version__ and git_hash: - xyz = __version__.split("-")[0] - __version__ = xyz + "-dev+" + git_hash