From patchwork Mon Jul 13 02:48:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "brian m. carlson" X-Patchwork-Id: 11658615 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 931E013B4 for ; Mon, 13 Jul 2020 02:50:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7AC92206F4 for ; Mon, 13 Jul 2020 02:50:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (3072-bit key) header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.b="uo3CHF4F" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728541AbgGMCtm (ORCPT ); Sun, 12 Jul 2020 22:49:42 -0400 Received: from injection.crustytoothpaste.net ([192.241.140.119]:40638 "EHLO injection.crustytoothpaste.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728408AbgGMCtf (ORCPT ); Sun, 12 Jul 2020 22:49:35 -0400 Received: from camp.crustytoothpaste.net (unknown [IPv6:2001:470:b978:101:b610:a2f0:36c1:12e3]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by injection.crustytoothpaste.net (Postfix) with ESMTPSA id 3286A60A67; Mon, 13 Jul 2020 02:49:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crustytoothpaste.net; s=default; t=1594608574; bh=2Uk60eVF35Xko9Fm5hChI+Nwm1x48yRPe8IdOh07YRA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Reply-To: Subject:Date:To:CC:Resent-Date:Resent-From:Resent-To:Resent-Cc: In-Reply-To:References:Content-Type:Content-Disposition; b=uo3CHF4Fq6kzt7kIeChDRvRzbjWQOgWklmvDeFBtgqN+shnZmkq0huCZ8lfMxGEJS NAweMA6QYUv4u3UNdNH5rQFqAq1+G1pYNKKKr7tfVrESBMIbiR3zDAiZwq6PDWVUBk YrETTFk0rLXdtTbQ8V99ZM1VUnLwtQW8uTZdiHpepU0hd1wXQWlMkz/2LSd3j2KLIq 7QMtEvABBySKTp9ttno3pCnRfg1xFLI6LCbG4XvY9bi27f+G4QtQI2WQerwKEoSsZo yDhOndw/YgjnAmVFTKOfpXa7AGWeppDBwE88pbwSdZAAfmmg+w+yKeYI9mwwEKHzGq 40gi9dwNmyU2EshfvJ3NdWWXC/BH+WP5ocPzuMm0GNkOnNdEECLxii9zFuVwJw/NPd avzgGMYNj6e7JomPfZc2UNeJU+rCpuFhtFrCKPVzjtiKs/aPUuX3SzK+jIRGNo3S4P 8naGdh4TAgtDWNzjZ7aM2mIWxV3KXYHE433jw5t+wjsMsYEfHSS From: "brian m. carlson" To: Cc: Denton Liu , Derrick Stolee Subject: [PATCH v2 23/39] t9301: make hash size independent Date: Mon, 13 Jul 2020 02:48:53 +0000 Message-Id: <20200713024909.3714837-24-sandals@crustytoothpaste.net> X-Mailer: git-send-email 2.27.0.353.gb9a2d1a020 In-Reply-To: <20200713024909.3714837-1-sandals@crustytoothpaste.net> References: <20200713024909.3714837-1-sandals@crustytoothpaste.net> MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Instead of using a hard-coded all-zeros object ID, use $ZERO_OID. Compute the length of the object IDs in use and use this instead of hard-coding the constant 40. Signed-off-by: brian m. carlson --- t/t9301-fast-import-notes.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/t/t9301-fast-import-notes.sh b/t/t9301-fast-import-notes.sh index ca223dca98..9d1aaac980 100755 --- a/t/t9301-fast-import-notes.sh +++ b/t/t9301-fast-import-notes.sh @@ -71,7 +71,7 @@ EOF INPUT_END test_expect_success 'set up master branch' ' - + test_oid_init && git fast-import >input <