Skip to content

Commit ff7d5e2

Browse files
committed
Meta/Announce: adjust to possible change to the top-level RelNotes
1 parent 1c97d7a commit ff7d5e2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Announce

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,17 @@ tag and the '$branch' branch that the tag points at:
7070
7171
EOF
7272

73-
RelNotes=$(git cat-file blob "${branch}:RelNotes") &&
73+
case "$(git ls-tree ${branch} RelNotes)" in
74+
120000' '*)
75+
RelNotes=$(git cat-file blob "${branch}:RelNotes")
76+
;;
77+
*)
78+
RelNotes=RelNotes
79+
;;
80+
esac &&
7481
git cat-file blob "${branch}:$RelNotes" |
7582
case "$relname" in
76-
*-rc[0-9]*)
83+
*-*)
7784
sed -e 's/^Git .* Release Notes$/& (draft)/' \
7885
-e 's/^=============/&========/'
7986
;;

0 commit comments

Comments
 (0)