aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/patchwork-update-commits2
-rwxr-xr-xtools/post-receive.hook6
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/patchwork-update-commits b/tools/patchwork-update-commits
index 62c91c3..269dac9 100755
--- a/tools/patchwork-update-commits
+++ b/tools/patchwork-update-commits
@@ -16,5 +16,5 @@ fi
git rev-list --reverse "$@" |
while read -r commit; do
hash=$(git diff "$commit~..$commit" | python "$PW_DIR/hasher.py")
- "$PW_DIR/bin/pwclient" update -s Accepted -c "$commit" -h "$hash"
+ pwclient update -s Accepted -c "$commit" -h "$hash"
done
diff --git a/tools/post-receive.hook b/tools/post-receive.hook
index 81a519e..9f2f050 100755
--- a/tools/post-receive.hook
+++ b/tools/post-receive.hook
@@ -30,14 +30,14 @@ get_patchwork_hash() {
get_patch_id() {
local id
- id=$($PW_DIR/bin/pwclient info -h "$1" 2>/dev/null \
- | sed -rne 's,- id[[:space:]]*: ,,p')
+ id=$(pwclient info -h "$1" 2>/dev/null | \
+ sed -rne 's,- id[[:space:]]*: ,,p')
echo "$id"
test -n "$id"
}
set_patch_state() {
- $PW_DIR/bin/pwclient update -s "$2" -c "$3" "$1" 2>&1
+ pwclient update -s "$2" -c "$3" "$1" 2>&1
}
update_patches() {