Meta/Announce: adjust to possible change to the top-level RelNotes
Junio C Hamano committed
Feb 11, 2015 at 15:27 UTC
ff7d5e2f294181bab85e90090a35868bb68ba18d
1 file changed
+9
-2
Announce
+9
-2
@@ -70,10 +70,17 @@ tag and the '$branch' branch that the tag points at:
70
71
EOF
72
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 &&
81
git cat-file blob "${branch}:$RelNotes" |
82
case "$relname" in
76
-*-rc[0-9]*)
83
+*-*)
84
sed -e 's/^Git .* Release Notes$/& (draft)/' \
85
-e 's/^=============/&========/'
86
;;