Skip to content

Commit dd69df8

Browse files
authored
Switch to other github URL to fix SSL error (#2082)
While using the https://raw.githubusercontent.com/... URL would have worked, Johannes Schindelin (@dscho) suggested to use these for robustness. ## Changes Changed URL pattern of Github for the the release notes. ## Context https://git-scm.com/ Release notes point to https://raw.github.com/git/git/master/Documentation/RelNotes/2.51.0.adoc which at least for me suddenly result in a certificate error (Error 503 hostname doesn't match against certificate), while https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.51.0.adoc works
2 parents 3df335c + 01b8bf4 commit dd69df8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hugo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ params:
3838
hugo_version: 0.148.2
3939
pagefind_version: 1.4.0
4040
latest_version: 2.51.0
41-
latest_relnote_url: https://raw.github.com/git/git/master/Documentation/RelNotes/2.51.0.adoc
41+
latest_relnote_url: https://github.com/git/git/raw/HEAD/Documentation/RelNotes/2.51.0.adoc
4242
latest_release_date: '2025-08-18'
4343
macos_installer:
4444
url: https://sourceforge.net/projects/git-osx-installer/files/git-2.33.0-intel-universal-mavericks.dmg/download?use_mirror=autoselect

script/update-git-version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
config = YAML.load_file("hugo.yml")
2121
config["params"] = {} if config["params"].nil?
2222
config["params"]["latest_version"] = version
23-
config["params"]["latest_relnote_url"] = "https://raw.github.com/git/git/master/Documentation/RelNotes/#{version}.adoc"
23+
config["params"]["latest_relnote_url"] = "https://github.com/git/git/raw/HEAD/Documentation/RelNotes/#{version}.adoc"
2424
config["params"]["latest_release_date"] = date.strftime("%Y-%m-%d")
2525
yaml = YAML.dump(config).gsub(/ *$/, "")
2626
File.write("hugo.yml", yaml)

0 commit comments

Comments
 (0)