Skip to content

Commit 76891b8

Browse files
committed
fix: Correct ambiguous argument in release script
1 parent 5816f4b commit 76891b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/generate_release_notes.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ fi
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

2323
if [ -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'"
2727
else
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'"
3131
fi
3232

3333
# Use a temporary file to store logs to avoid issues with pipes and loops.

0 commit comments

Comments
 (0)