Description: prevent to query the Git history whatsoever
Author: Daniel Stender <stender@debian.org>
Modified-By: Mo Zhou <cdluminate@gmail.com>
Origin: <upstream|backport|vendor|other>, <URL, required except if Author is present>
Forwarded: no
Last-Update: 2018-03-21

Index: numba/numba/scripts/generate_lower_listing.py
===================================================================
--- numba.orig/numba/scripts/generate_lower_listing.py	2020-05-28 11:04:34.881983023 +0800
+++ numba/numba/scripts/generate_lower_listing.py	2020-05-28 11:04:34.881983023 +0800
@@ -18,10 +18,12 @@
 import numba
 from numba.core.registry import cpu_target
 
+from numba._version import get_versions
 
 def git_hash():
-    out = check_output(['git', 'log', "--pretty=format:'%H'", '-n', '1'])
-    return out.decode('ascii').strip("'\"")
+    #out = check_output(['git', 'log', "--pretty=format:'%H'", '-n', '1'])
+    out = get_versions()['full']
+    return out.strip("'\"")
 
 
 def get_func_name(fn):
