Pārlūkot izejas kodu

tools/mkhtml.py: fix module/official addons source code and history URL branch (#2038)

Tomas Zigo 3 gadi atpakaļ
vecāks
revīzija
8ce450d9e2
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      tools/mkhtml.py

+ 1 - 1
tools/mkhtml.py

@@ -81,7 +81,7 @@ trunk_url = ""
 addons_url = ""
 if grass_version != "unknown":
     major, minor, patch = grass_version.split(".")
-    trunk_url = "https://github.com/OSGeo/grass/tree/main/"
+    trunk_url = f"https://github.com/OSGeo/grass/tree/releasebranch_{major}_{minor}/"
     addons_url = f"https://github.com/OSGeo/grass-addons/tree/grass{major}/"
 
 header_base = """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">