]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/create-pull-request: fix putting subject containing / into cover letter
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 29 Jul 2019 21:54:43 +0000 (09:54 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 29 Jul 2019 22:46:59 +0000 (23:46 +0100)
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 <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/create-pull-request

index 762828fd9ade0438c20b65ef1774421b5a1411c5..8eefcf63a561e6094239bd4561b51160bcfbb123 100755 (executable)
@@ -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