]> git.ozlabs.org Git - patchwork/blobdiff - tools/patchwork-update-commits
models: Update Person & UserProfile object whenever User is saved
[patchwork] / tools / patchwork-update-commits
index 245a66a06844df0dc763879e1bc876de8a1179f4..b2a658afdb3947c03eb7b32373621d28aac13af8 100755 (executable)
@@ -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