summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtools/post-receive.hook4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/post-receive.hook b/tools/post-receive.hook
index b2b89a2..4f76fa6 100755
--- a/tools/post-receive.hook
+++ b/tools/post-receive.hook
@@ -25,8 +25,8 @@ get_patchwork_hash()
get_patch_id()
{
local id
- id=$($PWDIR/bin/pwclient view -h $1 2>/dev/null \
- | sed -rne 's,X-Patchwork-Id: ,,p')
+ id=$($PWDIR/bin/pwclient info -h $1 2>/dev/null \
+ | sed -rne 's,- id[[:space:]]*: ,,p')
echo $id
test -n "$id"
}