From patchwork Mon Dec 19 21:54:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 851046 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3z1V6F0htSz9s71 for ; Wed, 20 Dec 2017 07:35:49 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3z1V6D6XthzF07Q for ; Wed, 20 Dec 2017 07:35:48 +1100 (AEDT) X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Received: from mail-qt0-f193.google.com (mail-qt0-f193.google.com [209.85.216.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3tjF6x14r0zDwRc for ; Tue, 20 Dec 2016 08:54:01 +1100 (AEDT) Received: by mail-qt0-f193.google.com with SMTP id m48so20727925qta.2 for ; Mon, 19 Dec 2016 13:54:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=EBsaarKLJSgw5hBw3JmGfBXP0n5brbo1USKn0T8U+iM=; b=WQ75mlkeQGl1JLroeKfHWDltXG3kFuwcuqk28VVKy1r0Cph3LpTWFLNZhxQiT/1hk8 rmbQcOXd7Ter1mo8byNkbGsZdUGlYBvKVYDAqczx9nwOj8UsRFu/yISFH8tH7huIjVmM DBcJlXkF695Eawt2ObhNWKDTAlwlpcaVwgBmviGMu7q088RXRDIaJFHmXDqeImb7hTIb UgUw9KVaSXPUcK4G3tPXD0Ily70V9RmsfTTTVYdMdHpoY6k1I/UIH9w2RK2heVjeEHzQ HnKyw+UDpHMUjBtMoOM6dgsmSG2m3XjLsoNSB8X6bCJHD4rpO8cHrwe4J7pYTqO1QRCE ApbA== X-Gm-Message-State: AIkVDXI7n2X0X7DgN5Vvdz/fmZRJKwAjql7iSCoU3UeQ37f6TV5dtEDD7XVXGHIJsg0THA== X-Received: by 10.200.34.207 with SMTP id g15mr18893988qta.17.1482184438479; Mon, 19 Dec 2016 13:53:58 -0800 (PST) Received: from localhost.localdomain (cpe-75-180-228-133.ec.res.rr.com. [75.180.228.133]) by smtp.gmail.com with ESMTPSA id d189sm5119671qka.32.2016.12.19.13.53.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Dec 2016 13:53:57 -0800 (PST) From: Tom Rini To: patchwork@lists.ozlabs.org Subject: [PATCH] post-receive.hook: Handle failure to find patch number Date: Mon, 19 Dec 2016 16:54:17 -0500 Message-Id: <1482184457-4147-1-git-send-email-trini@konsulko.com> X-Mailer: git-send-email 1.9.1 X-Mailman-Approved-At: Wed, 20 Dec 2017 07:33:24 +1100 X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" 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 Reviewed-by: Stephen Finucane --- tools/post-receive.hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/post-receive.hook b/tools/post-receive.hook index 42de90a3a7c2..e6b07ee9b9da 100755 --- a/tools/post-receive.hook +++ b/tools/post-receive.hook @@ -67,7 +67,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