File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1818
1919# Find the tag of the commit *before* the current tag. This is our "from" point.
2020# If it fails (e.g., this is the very first tag), PREVIOUS_TAG will be empty.
21- PREVIOUS_TAG=$( git describe --tags --abbrev=0 " v ${CURRENT_TAG} ^" 2> /dev/null || echo " " )
21+ PREVIOUS_TAG=$( git describe --tags --abbrev=0 " ${CURRENT_TAG} ^" 2> /dev/null || echo " " )
2222
2323if [ -z " $PREVIOUS_TAG " ]; then
24- echo " No previous tag found. Generating notes for all commits up to v ${CURRENT_TAG} ."
24+ echo " No previous tag found. Generating notes for all commits up to ${CURRENT_TAG} ."
2525 # Get all commit messages from the very first commit up to the current tag
26- LOG_CMD=" git log v ${CURRENT_TAG} --pretty=format:'%B'"
26+ LOG_CMD=" git log ${CURRENT_TAG} --pretty=format:'%B'"
2727else
28- echo " Generating notes from tag ${PREVIOUS_TAG} to v ${CURRENT_TAG} ."
28+ echo " Generating notes from tag ${PREVIOUS_TAG} to ${CURRENT_TAG} ."
2929 # Get all commit messages between the two tags.
30- LOG_CMD=" git log ${PREVIOUS_TAG} ..v ${CURRENT_TAG} --pretty=format:'%B'"
30+ LOG_CMD=" git log ${PREVIOUS_TAG} ..${CURRENT_TAG} --pretty=format:'%B'"
3131fi
3232
3333# Use a temporary file to store logs to avoid issues with pipes and loops.
You can’t perform that action at this time.
0 commit comments