Remove newline on removing SoB from committer if necessary to keep
commit description tags tidy.
Fixes: c1f80d0258a7 ("github-merge-pr: add Link: tag and Committer SoB")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
# Remove any previous SoB tag if the Pull Request Author and Committer match
if ! $GIT filter-repo --message-callback "
- return message.replace(b\"Signed-off-by: $(git config user.name) <$(git config user.email)>\",b\"\")
+ return message.replace(b\"Signed-off-by: $(git config user.name) <$(git config user.email)>\n\",b\"\")
" --refs $BRANCH..$LOCAL_PR_BRANCH --force; then
echo "Failed to remove previous Committer SoB tag" >&2
exit 9