[OE-core] [PATCH 2/2] scripts/create-pull-request: fix putting subject containing / into cover letter
Paul Eggleton
paul.eggleton at linux.intel.com
Mon Jul 29 21:54:43 UTC 2019
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 at linux.intel.com>
---
scripts/create-pull-request | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
2.20.1
More information about the Openembedded-core
mailing list