#!/bin/bash
-pwpath=apps/patchwork
+toolsdir="$(dirname "$0")"
+pwpath="${toolsdir}"/../apps/patchwork
if [ "$#" -lt 1 ]
then
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