From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sun, 2 Jul 2023 10:29:03 +0000
Subject: Fix links to source in docs

Forwarded: not-needed
---
 docs/conf.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index dd16ad3..739b941 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -12,7 +12,6 @@
 # documentation root, use os.path.abspath to make it absolute, like shown here.
 #
 import os
-import subprocess
 import sys
 from typing import Any
 
@@ -20,11 +19,7 @@ sys.path.insert(0, os.path.abspath("."))
 sys.path.insert(0, os.path.abspath("../"))
 from pystac.version import STACVersion, __version__  # noqa:E402
 
-git_branch = (
-    subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"])
-    .decode("utf-8")
-    .strip()
-)
+git_branch = os.environ.get("UPSTREAM_VERSION", "master")
 
 # -- Project information -----------------------------------------------------
 
