[OE-core] [PATCH 1/1] create-pull-request: handle '/' in subject correctly

ChenQi Qi.Chen at windriver.com
Wed Jun 6 07:37:09 UTC 2018


ping

On 05/08/2018 04:34 PM, Chen Qi wrote:
> 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
>   





More information about the Openembedded-core mailing list