[OpenWrt-Devel] SVN to GIT transition

John Crispin blogic at openwrt.org
Mon Oct 12 03:45:20 EDT 2015

On 12/10/2015 09:36, Felix Fietkau wrote:
>> Sure could use pwclient and ocassionally do, however it does essentially one thing
>> > only: save me the download step. Yes, I can also save me the click back to the
>> > browser to hit accept and can do that via CLI (if I remember the cryptic switches).
>> > On top of that now I have to deal with an opaque 5 or 6-digit patch id in my head.
> I usually copy the mbox link from patchwork and do this:
> wget -O- <link> | git am


wget http://patchwork.ozlabs.org/patch/$1/mbox/ -O $1.patch

[ -f $1.patch ] || {
        echo "unknown patchwork id"
        exit 1

git am --3way $1.patch
[ $? = 0 ] || {
        mkdir -p fails
        cp $1.patch fails/
        git am --abort
        echo applying $1 FAILED
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list