Blob Blame History Raw
--- doc/conf.py.orig	2019-01-15 14:13:57.000000000 -0700
+++ doc/conf.py	2019-08-23 09:29:09.742863974 -0600
@@ -221,10 +221,7 @@ def linkcode_resolve(domain, info):
         filename = 'theano/%s#L%d-L%d' % find_source()
     except Exception:
         filename = info['module'].replace('.', '/') + '.py'
-    import subprocess
-    tag = subprocess.Popen(['git', 'rev-parse', 'HEAD'],
-                           stdout=subprocess.PIPE,
-                           universal_newlines=True).communicate()[0][:-1]
+    tag = '@@tag@@'
     return "https://github.com/Theano/theano/blob/%s/%s" % (tag, filename)
 
 # Options for LaTeX output