* [PATCH 0/1] create-pull-request: fix sed command for SUBJECT
@ 2018-12-20 8:04 Robert Yang
2018-12-20 8:04 ` [PATCH 1/1] " Robert Yang
0 siblings, 1 reply; 4+ messages in thread
From: Robert Yang @ 2018-12-20 8:04 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 14c291e1fb6324da46885b69fbd7f01b3c6b053e:
gcc-runtime: Add missing libc dependency (2018-12-18 16:19:30 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib rbt/cpr
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/cpr
Robert Yang (1):
create-pull-request: fix sed command for SUBJECT
scripts/create-pull-request | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.10.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] create-pull-request: fix sed command for SUBJECT
2018-12-20 8:04 [PATCH 0/1] create-pull-request: fix sed command for SUBJECT Robert Yang
@ 2018-12-20 8:04 ` Robert Yang
2018-12-20 11:48 ` Burton, Ross
0 siblings, 1 reply; 4+ messages in thread
From: Robert Yang @ 2018-12-20 8:04 UTC (permalink / raw)
To: openembedded-core
Fixed when SUBJECT contains slash(/):
sed: -e expression #1, char 35: unknown option to `s'
Use '#' as separator to fix the problem.
Signed-off-by: Robert Yang <liezhi.yang@windriver.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 280880b..ff0f7e6 100755
--- a/scripts/create-pull-request
+++ b/scripts/create-pull-request
@@ -278,7 +278,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.10.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] create-pull-request: fix sed command for SUBJECT
2018-12-20 8:04 ` [PATCH 1/1] " Robert Yang
@ 2018-12-20 11:48 ` Burton, Ross
2018-12-24 6:24 ` Robert Yang
0 siblings, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2018-12-20 11:48 UTC (permalink / raw)
To: Robert Yang; +Cc: OE-core
So if I sent a patch with the subject "Fix #1234" it fails?
Sounds like a good reason to rewrite create-pull-request in Python to
avoid this nonsense.
Ross
On Thu, 20 Dec 2018 at 08:05, Robert Yang <liezhi.yang@windriver.com> wrote:
>
> Fixed when SUBJECT contains slash(/):
> sed: -e expression #1, char 35: unknown option to `s'
>
> Use '#' as separator to fix the problem.
>
> Signed-off-by: Robert Yang <liezhi.yang@windriver.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 280880b..ff0f7e6 100755
> --- a/scripts/create-pull-request
> +++ b/scripts/create-pull-request
> @@ -278,7 +278,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.10.2
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] create-pull-request: fix sed command for SUBJECT
2018-12-20 11:48 ` Burton, Ross
@ 2018-12-24 6:24 ` Robert Yang
0 siblings, 0 replies; 4+ messages in thread
From: Robert Yang @ 2018-12-24 6:24 UTC (permalink / raw)
To: Burton, Ross; +Cc: OE-core
On 12/20/18 7:48 PM, Burton, Ross wrote:
> So if I sent a patch with the subject "Fix #1234" it fails?
>
> Sounds like a good reason to rewrite create-pull-request in Python to
> avoid this nonsense.
Yes, that's a good idea, and we can improve it a little, such as:
* Check SOB, Upstream-Status and so on.
* Make it can check the patches on patchwork/patchtest if possible.
Our team can work on it if no objections.
// Robert
>
> Ross
> On Thu, 20 Dec 2018 at 08:05, Robert Yang <liezhi.yang@windriver.com> wrote:
>>
>> Fixed when SUBJECT contains slash(/):
>> sed: -e expression #1, char 35: unknown option to `s'
>>
>> Use '#' as separator to fix the problem.
>>
>> Signed-off-by: Robert Yang <liezhi.yang@windriver.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 280880b..ff0f7e6 100755
>> --- a/scripts/create-pull-request
>> +++ b/scripts/create-pull-request
>> @@ -278,7 +278,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.10.2
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-12-24 6:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-20 8:04 [PATCH 0/1] create-pull-request: fix sed command for SUBJECT Robert Yang
2018-12-20 8:04 ` [PATCH 1/1] " Robert Yang
2018-12-20 11:48 ` Burton, Ross
2018-12-24 6:24 ` Robert Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox