fix changelog if one commit

This commit is contained in:
nyyu 2022-12-23 11:02:27 +01:00
parent d4e59f706b
commit 439316bac1

View file

@ -20,7 +20,7 @@ for i in "${tmp[@]}"; do
if [[ "${folder}" != lineage/* && "${before[${folder}]}" != "${commit}" ]]; then if [[ "${folder}" != lineage/* && "${before[${folder}]}" != "${commit}" ]]; then
cd "${folder}" || continue cd "${folder}" || continue
log=$(git --no-pager log --pretty=format:"- %s" "${before[${folder}]}".."${commit}") log=$(git --no-pager log --pretty=format:"- %s" "${before[${folder}]}".."${commit}")
if [[ $(echo -n "$log" | wc -l) != 0 ]]; then if [[ $(echo -n "$log" | wc -c) != 0 ]]; then
{ {
echo "## ${folder} ${before[${folder}]}..${commit}" echo "## ${folder} ${before[${folder}]}..${commit}"
echo "$log" echo "$log"
@ -53,4 +53,4 @@ git reset --hard losul/lineage-19.1
cd $TOPDIR cd $TOPDIR
repopick -P frameworks/base -r 336824 336825 336826 336827 336828 336829 336830 336831 336832 336833 336834 336835 336836 repopick -P frameworks/base -r 336824 336825 336826 336827 336828 336829 336830 336831 336832 336833 336834 336835 336836
repopick -f 333534 -P system/core repopick -f 333534 -P system/core
repopick -f 329229 329230 -P frameworks/base repopick -f 329229 329230 -P frameworks/base