[OE-core] [PATCH 1/1] create-pull-request: handle '/' in subject correctly
Chen Qi
Qi.Chen at windriver.com
Tue May 8 08:34:48 UTC 2018
When subject contains '/', we will meet the following error when
using create-pull-request.
sed: -e expression #1, char 59: unknown option to `s'
The problem is not critical. But it's better to fix it.
Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
---
scripts/create-pull-request | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/create-pull-request b/scripts/create-pull-request
index 280880b..b4cf706 100755
--- a/scripts/create-pull-request
+++ b/scripts/create-pull-request
@@ -278,6 +278,7 @@ fi
# Replace the SUBJECT token with it.
if [ -n "$SUBJECT" ]; then
+ SUBJECT="`echo $SUBJECT | sed -e 's#/#\\\\/#g'`"
sed -i -e "s/\*\*\* SUBJECT HERE \*\*\*/$SUBJECT/" "$CL"
fi
--
1.9.1
More information about the Openembedded-core
mailing list