From 90e85f9de201ede696d6d30b65f5eb49c34af665 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Sun, 21 Oct 2018 12:05:58 +0100 Subject: Remove pwclient Let's start managing this via a separate project, which will allow the client to evolve separately from the server. No redirect is added for the old '/pwclient' URL as it seems wiser to return a HTTP 404 error code. Signed-off-by: Stephen Finucane --- tools/patchwork-update-commits | 2 +- tools/post-receive.hook | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tools') 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() { -- cgit v1.2.3