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
index 5833656556..0124eb348a 100755
--- a/Announce
+++ b/Announce
@@ -70,10 +70,17 @@ tag and the '$branch' branch that the tag points at:
EOF
-RelNotes=$(git cat-file blob "${branch}:RelNotes") &&
+case "$(git ls-tree ${branch} RelNotes)" in
+120000' '*)
+ RelNotes=$(git cat-file blob "${branch}:RelNotes")
+ ;;
+*)
+ RelNotes=RelNotes
+ ;;
+esac &&
git cat-file blob "${branch}:$RelNotes" |
case "$relname" in
-*-rc[0-9]*)
+*-*)
sed -e 's/^Git .* Release Notes$/& (draft)/' \
-e 's/^=============/&========/'
;;