Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline release tag messages cause problems #6475

Open
shaedrich opened this issue May 31, 2022 · 0 comments
Open

Multiline release tag messages cause problems #6475

shaedrich opened this issue May 31, 2022 · 0 comments

Comments

@shaedrich
Copy link

I was unable to use gitflow to include release notes/a change log. This is what I tried:

git flow release finish 1.0.0 --pushdevelop --pushtag --pushproduction -m "Tagging 1.0.0
>>
>> # [CHANGED]
>> - Something has changed
>>
>> # [FIXED]
>> - Something has been fixed"

Multiple -m don't work either:

git flow release finish 1.0.0 --pushdevelop --pushtag --pushproduction -m "Tagging 1.0.0" -m "# [CHANGED]
>> - Something has changed
>>
>> # [FIXED]
>> - Something has been fixed"

Solution

add -subject and -body to your command:
https://github.com/nvie/gitflow/blob/develop/git-flow-release#L251:

			[ "$FLAGS_message" != "" ] && opts="$opts -m '$FLAGS_message'"
			[ "$FLAGS_subject" != "" && "$FLAGS_body" ] && opts="$opts -m '$FLAGS_subject' -m '$FLAGS_body'"

Another solution would be to fix whatever causes strange results with multiline tag messages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant