From: "codehelp@debian.org" <codehelp@debian.org>
Date: Wed, 26 Jan 2022 14:05:39 +0000
Subject: Allow version to be retrieved inside the packaging

 gitarchive is confused by this .git not being the upstream
 repository.
---
 setup.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/setup.py b/setup.py
index f5fd19e..3aaea3e 100644
--- a/setup.py
+++ b/setup.py
@@ -127,12 +127,12 @@ def getversioncfg():
         if mx:
             g['version'] = mx.group(1)
     # then try to obtain version data from git.
-    gitdir = os.path.join(MYDIR, '.git')
-    if os.path.exists(gitdir) or 'GIT_DIR' in os.environ:
-        try:
-            g = gitinfo()
-        except OSError:
-            pass
+#    gitdir = os.path.join(MYDIR, '.git')
+#    if os.path.exists(gitdir) or 'GIT_DIR' in os.environ:
+#        try:
+#            g = gitinfo()
+#        except OSError:
+#            pass
     # finally, check and update the active version file
     cp = RawConfigParser()
     cp.read(versioncfgfile)
