From: Paul Eggleton Date: Mon, 29 Jul 2019 21:54:43 +0000 (+1200) Subject: scripts/create-pull-request: fix putting subject containing / into cover letter X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~13747 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4c3f93d7407ac1ea20b33149f20153972d631c0;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git scripts/create-pull-request: fix putting subject containing / into cover letter If a single-commit series had a shortlog containing a "/" character then that prevented putting the shortlog into the subject of the cover letter message. Use a different separating character with the sed command (one much less likely to appear) in order to fix it. Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- diff --git a/scripts/create-pull-request b/scripts/create-pull-request index 762828fd9ad..8eefcf63a56 100755 --- a/scripts/create-pull-request +++ b/scripts/create-pull-request @@ -257,7 +257,7 @@ fi # Replace the SUBJECT token with it. if [ -n "$SUBJECT" ]; then - sed -i -e "s/\*\*\* SUBJECT HERE \*\*\*/$SUBJECT/" "$CL" + sed -i -e "s\`\*\*\* SUBJECT HERE \*\*\*\`$SUBJECT\`" "$CL" fi