From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 88D011F5AE for ; Tue, 28 Jul 2020 23:35:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730466AbgG1Xfs (ORCPT ); Tue, 28 Jul 2020 19:35:48 -0400 Received: from injection.crustytoothpaste.net ([192.241.140.119]:40980 "EHLO injection.crustytoothpaste.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730421AbgG1Xfi (ORCPT ); Tue, 28 Jul 2020 19:35:38 -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 7128461011; Tue, 28 Jul 2020 23:35:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crustytoothpaste.net; s=default; t=1595979305; 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=okFfpe7msU0Eo+8lDN8HPAz9ArrdQYl2i6xC23x33diwHR0hBIDu4chBRmbSkvagt gonXZRsa8E8iX6X+/cdg5sEK1MDKmy+ao6WLoZby55zzgWWi1sEJfxoAAWELcn4ye/ 7Y68S63q1+FJUqiAG+PsNrrvAZM3z04lfeeVfLycYPdqnSqRptlW8vsZSrCDcgIVA8 rEVBPHWgEmcx1B08hJW9//966TSSFKYGmQcyb3eeKt2ohdGEPanOYOThI8+zJ4wM1G tgOilcmbsPyi1HWibm7CUr8ZT1UaHulDgLxOOrgf8Wa/urbULK429mJ4U1Yf6z+ugr fbyOS+Ny5E6tFRngZMZ3N62AO0M6fN8X6WhbDIABLNNeGF50hMUF/1iCTcJdpF62Qg 1OXA8RCpFV6rs+RJOyTyiRyLKU2ByoJWhZHejv7PwqinD96r9dzG3viv3tsbRjVpts sbcqEFcOKvHrxiTIpIpnd5loBsZtVTmLaOS6sOG8f6WW669NQvp From: "brian m. carlson" To: Cc: Eric Sunshine Subject: [PATCH v5 23/39] t9301: make hash size independent Date: Tue, 28 Jul 2020 23:34:30 +0000 Message-Id: <20200728233446.3066485-24-sandals@crustytoothpaste.net> X-Mailer: git-send-email 2.28.0.163.g6104cc2f0b6 In-Reply-To: <20200728233446.3066485-1-sandals@crustytoothpaste.net> References: <20200728233446.3066485-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 <