summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-12-19 16:54:17 -0500
committerStephen Finucane <stephen@that.guru>2018-01-04 11:35:26 +0000
commit0743dd0af9842c7ded4873892085a3f505062440 (patch)
treee238028cee6984dcd8aff7bead46a8f46a4c7498 /tools
parent14034e8a44a497d32f56f31a0fdc4473336d92af (diff)
downloadpatchwork-0743dd0af9842c7ded4873892085a3f505062440.tar
patchwork-0743dd0af9842c7ded4873892085a3f505062440.tar.gz
post-receive.hook: Handle failure to find patch number
When pwclient info -h fails to come up with the number for the change in question it will exit with a non-zero exit code. This failure will propagate upwards and exit the script there. Make our call to get_patch_id or in true so that our script here will see an empty id and we continue on with the list. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/post-receive.hook2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/post-receive.hook b/tools/post-receive.hook
index 8098ce8..7f8ae7e 100755
--- a/tools/post-receive.hook
+++ b/tools/post-receive.hook
@@ -66,7 +66,7 @@ update_patches() {
echo "E: failed to hash rev $rev." >&2
continue
fi
- id=$(get_patch_id "$hash")
+ id=$(get_patch_id "$hash" || true)
if [ -z "$id" ]; then
echo "E: failed to find patch for rev $rev." >&2
continue