X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fpatchwork-update-commits;h=b2a658afdb3947c03eb7b32373621d28aac13af8;hb=f1e5f6a2c9d737f12290f5bd5a934b74c362616f;hp=245a66a06844df0dc763879e1bc876de8a1179f4;hpb=1dbc5bbbf795b6ae572e3aba8f4e2ce9ba4e94a1;p=patchwork diff --git a/tools/patchwork-update-commits b/tools/patchwork-update-commits index 245a66a..b2a658a 100755 --- a/tools/patchwork-update-commits +++ b/tools/patchwork-update-commits @@ -1,6 +1,7 @@ #!/bin/bash -pwpath=apps/patchwork +toolsdir="$(dirname "$0")" +pwpath="${toolsdir}"/../apps/patchwork if [ "$#" -lt 1 ] then @@ -12,5 +13,5 @@ git rev-list --reverse "$@" | while read commit do hash=$(git show "$commit" | python $pwpath/parser.py -#) - $pwpath/bin/pwclient -s Accepted -c "$commit" -h "$hash" + $pwpath/bin/pwclient update -s Accepted -c "$commit" -h "$hash" done