Skip to content

Commit c9195da

Browse files
committed
tag-git: work around .txt/.adoc inconsistency
One of the things in the Git project that you either grow to love or instead to wish away is the somewhat consistent tendency to be inconsistent. This commit concerns itself with the fact that the release notes of v2.49.1 are stored in a `.txt` file in `Documentation/RelNotes/`. All other files in that directory have the `.adoc` extension ever since that ill-executed rename of 1f010d6bdf (doc: use .adoc extension for AsciiDoc files, 2025-01-20). Funnily enough, this is only true for the revision tagged as v2.49.1, but the one tagged as v2.50.1 has them renamed to `.adoc` files. I'll just do what I always do: Deal with the fall-out in a pragmatic way, as there isn't really any good alternative to that approach. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 53568f4 commit c9195da

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

update-scripts/tag-git.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ else
5858
if ! grep -q "^\\* Comes with \\[Git $base_tag\\]" "$build_extra_dir"/ReleaseNotes.md
5959
then
6060
url=https://github.com/git/git/blob/$base_tag &&
61-
adoc="$(echo "${base_tag#v}" | sed 's/-rc[0-9]*$//').adoc" &&
61+
case "$base_tag" in
62+
v2.43.7|v2.44.4|v2.45.4|v2.46.4|v2.47.3|v2.48.2|v2.49.1) ext=txt;;
63+
*) ext=adoc;;
64+
esac &&
65+
adoc="$(echo "${base_tag#v}" | sed 's/-rc[0-9]*$//').$ext" &&
6266
url=$url/Documentation/RelNotes/$adoc &&
6367
release_note="Comes with [Git $base_tag]($url)." &&
6468
(cd "$build_extra_dir" && node ./add-release-note.js --commit feature "$release_note")

0 commit comments

Comments
 (0)