Commit 6816917e authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmlog: split joined sub-items separated by ' -' onto new lines

Same hack as for ' +' separator, fixes wine-style cumulative commit messages where multiple patches are glued together with ' - '.
parent b2569ec4
......@@ -161,7 +161,7 @@ if [ -n "$CHANGELOGADD" ] ; then
else
# TODO: найти параметр для упрощения истории. пока - sort?
# Делает первую букву маленькой, убирает точку в конце строки
CHANGELOG="$(git --no-pager log $FROMTAG..$TOTAG --reverse --simplify-merges --dense --pretty="- %s" | sed -e "s|\.\$||g" -e "s|- \([A-Z]\)\([a-z]\)|- \l\1\2|g" -e "s|%||g" -e "s| +|\n +|g")"
CHANGELOG="$(git --no-pager log $FROMTAG..$TOTAG --reverse --simplify-merges --dense --pretty="- %s" | sed -e "s|\.\$||g" -e "s|- \([A-Z]\)\([a-z]\)|- \l\1\2|g" -e "s|%||g" -e "s| +|\n +|g" -e "s| -|\n -|g")"
[ -n "$CHANGELOG" ] || fatal "git log was failed. Probably, you have no tag $FROMTAG in your repo. Check the source repository."
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment