<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 11:13 PM, Robert Yang <span dir="ltr">&lt;<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 04/19/2016 11:00 AM, Bruce Ashfield wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
<br>
On Mon, Apr 18, 2016 at 10:45 PM, Robert Yang &lt;<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a><br></span><span class="">
&lt;mailto:<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a>&gt;&gt; wrote:<br>
<br>
    Before this patch, we need two steps to create PULL:<br>
    * Step 1, create branch:<br>
       $ git push &lt;contrib&gt; &lt;local_branch&gt;:&lt;remote_branch&gt;<br>
    * Step 2, create PULL:<br>
       $ create-pull-request -u &lt;contrib&gt; -l &lt;local_branch&gt; -b &lt;remote_branch&gt;<br>
    -r &lt;local_branch&gt;~&lt;n&gt;<br>
<br>
    We can see that the args used in step 1 are in step 2, so we can use<br>
    create-pull-request to create the branch if not found to simplify the<br>
    steps.<br>
<br>
<br>
I think this needs to be optional. When I&#39;m running this script, I&#39;m just<br>
looking to have something<br>
I&#39;ve already pushed locally dumped. If I mess up, and don&#39;t have the branch that<br>
I&#39;ve used<br>
pushed to my remote already (or for  whatever reason want/need different<br>
branches .. which<br>
was broken in previous updates to the script .. grrr),  I don&#39;t want something<br>
pushing a branch<br>
without be explicitly giving permission for that to happen.<br>
</span></blockquote>
<br>
Thanks, how about add an option:<br>
<br>
&quot;-a     automatically push/update local branch (-l) to remote branch (-b)&quot;<br>
<br>
Then it will always create/update the remote branch when -a is used.<br></blockquote><div><br></div><div>That would meet my requirement. So looks fine to me. Others of course have the</div><div>right to object :)</div><div><br></div><div>Cheers,</div><div><br></div><div>Bruce</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
// Robert<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
Bruce<br>
<br>
<br>
    [YOCTO #9408]<br>
<br>
    Signed-off-by: Robert Yang &lt;<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a><br></span>
    &lt;mailto:<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a>&gt;&gt;<div><div class="h5"><br>
    ---<br>
      scripts/create-pull-request | 4 ++--<br>
      1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
    diff --git a/scripts/create-pull-request b/scripts/create-pull-request<br>
    index 479ad6e..7dc9836 100755<br>
    --- a/scripts/create-pull-request<br>
    +++ b/scripts/create-pull-request<br>
    @@ -173,8 +173,8 @@ esac<br>
      if [ -n &quot;$WEB_URL&quot; ]; then<br>
             wget --no-check-certificate -q $WEB_URL -O /dev/null<br>
             if [ $? -ne 0 ]; then<br>
    -               echo &quot;WARNING: Branch &#39;$BRANCH&#39; was not found on the contrib<br>
    git tree.&quot;<br>
    -               echo &quot;         Please check your remote and branch parameter<br>
    before sending.&quot;<br>
    +               echo &quot;Branch &#39;$BRANCH&#39; not found on &#39;$REMOTE&#39;, creating it...&quot;<br>
    +               git push $REMOTE $L_BRANCH:$BRANCH<br>
                     echo &quot;&quot;<br>
             fi<br>
      fi<br>
    --<br>
    2.7.4<br>
<br>
    --<br>
    _______________________________________________<br>
    Openembedded-core mailing list<br>
    <a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br></div></div>
    &lt;mailto:<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a>&gt;<span class=""><br>
    <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
<br>
<br>
<br>
<br>
--<br>
&quot;Thou shalt not follow the NULL pointer, for chaos and madness await thee at its<br>
end&quot;<br>
</span></blockquote>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">&quot;Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end&quot;</div>
</div></div>