From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C8EEC433EB for ; Thu, 23 Jul 2020 01:10:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5D1922080D for ; Thu, 23 Jul 2020 01:10:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (3072-bit key) header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.b="l42UAQCb" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387598AbgGWBKC (ORCPT ); Wed, 22 Jul 2020 21:10:02 -0400 Received: from injection.crustytoothpaste.net ([192.241.140.119]:40488 "EHLO injection.crustytoothpaste.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387577AbgGWBKA (ORCPT ); Wed, 22 Jul 2020 21:10:00 -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 DB02A60AFD for ; Thu, 23 Jul 2020 01:09:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crustytoothpaste.net; s=default; t=1595466600; bh=2Uk60eVF35Xko9Fm5hChI+Nwm1x48yRPe8IdOh07YRA=; h=From:To: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=l42UAQCbvyEN0/IIVWPrnA4Qp629hPlW6mjOOl4carom0s1ldWrUCoDSkZxBiidTI WzMtDkFpDHBCRulaOeDc6EvLOtx39ZbRqweOwm+Z/FZyikxnEFGRp5qOrb2zJW19Kf oeETu9WmKx67titO8B9NHqBRe4jaYzDOrI6IKBfZtEBfPLaJaxlFyipifmtS1Nnvcg RW8hieFpE2bFUkkeTIPYqPw2a5IRIXyRmb75L0te5b+4UvvXC9e+TCt83U5a//y1W3 PNeE9SxJMj3+LLfPNoKc4W5udhxwpuPazmfxjbud4pUyqahqW/gp0sL03dwFcx6LIq AJkTGlBAC3xkZA0tC3d/3iAivboqLnuzw82S2oG/JNqQZfkOuUAtbeXuTSLkf7EJJx aSa8ED510AU6y+MpHeA1OJjcvZrh3+VC9Ozc43LCfSeq+aoIN4oTvpJIPZT8oCqGTA +2dKXJtK4+P3gaCbG+/8w/MyswTn3wTflXBNimdYHtVKg3izTkf From: "brian m. carlson" To: Subject: [PATCH v3 23/39] t9301: make hash size independent Date: Thu, 23 Jul 2020 01:09:27 +0000 Message-Id: <20200723010943.2329634-24-sandals@crustytoothpaste.net> X-Mailer: git-send-email 2.28.0.rc1.129.ge9626dbbb9f In-Reply-To: <20200723010943.2329634-1-sandals@crustytoothpaste.net> References: <20200723010943.2329634-1-sandals@crustytoothpaste.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 <