summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2018-10-21 12:05:58 +0100
committerStephen Finucane <stephen@that.guru>2019-06-17 15:05:03 +0100
commit90e85f9de201ede696d6d30b65f5eb49c34af665 (patch)
tree24acc3386262f55eaaf5bd4ba0f3a2430bc493b4 /tools
parent5ee0c0fdb0fc85f6e03ed55b04c918fa2ee0659b (diff)
downloadpatchwork-90e85f9de201ede696d6d30b65f5eb49c34af665.tar
patchwork-90e85f9de201ede696d6d30b65f5eb49c34af665.tar.gz
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 <stephen@that.guru>
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() {