Article View: linux.kernel.git
Article #3679Re: [PATCH v4] setup: fix hash algorithm detection
From: Junio C Hamano
Date: Tue, 24 Nov 2026 00:01
Date: Tue, 24 Nov 2026 00:01
51 lines
14507 bytes
14507 bytes
"brian m. carlson" <sandals@crustytoothpaste.net> writes: >> I think it is test_config_global that is getting complained. Perhaps >> something along this line would fix it. > > I'll do a reroll. That only triggers on bash and I use dash as /bin/sh. Yeah, I run my tests under both shells exactly for that reason. Running tests with dash can (sometimes) catch unintended and unnoticed bashisms in the test scripts, and running tests with bash would allow some optional test lint features that are only available under bash. Thanks. If this is the only thing that the reroll would change, I already have a fix-up commit on top of the topic branch, so you can tell me to squash it in. Thanks. From 0064676b1a1b4263a45c168443849be4520b2ae3 Mon Sep 17 00:00:00 2001 From: Junio C Hamano <gitster@pobox.com> Date: Mon, 23 Nov 2026 08:23:38 -0800 Subject: [PATCH] SQUASH??? --- t/t0001-init.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/t0001-init.sh b/t/t0001-init.sh index 5def3f98b7..58271c8fac 100755 --- a/t/t0001-init.sh +++ b/t/t0001-init.sh @@ -638,6 +638,7 @@ test_expect_success 'init refuses to reinitialize with different hash' ' test_expect_success 're-init does not modify hash from config' ' test_when_finished "rm -rf repo" && + test_when_finished "test_unconfig --global init.defaultObjectFormat" && ( sane_unset GIT_DEFAULT_HASH && for algo in sha1 sha256 @@ -649,7 +650,7 @@ test_expect_success 're-init does not modify hash from config' ' other=sha1 fi && git init --object-format="$algo" repo && - test_config_global init.defaultObjectFormat "$other" && + git config --global init.defaultObjectFormat "$other" && git init repo && echo "$algo" >expect && git -C repo rev-parse --show-object-format >actual && -- 2.56.1-774-g531cf23297
Technical Details
Message-ID:
<xmqqfqwr3xn7.fsf@gitster.g>Path:
mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-76192-linux-kernel-git=dewy.ruReferences:
<20261108011633.1772000-1-sandals@crustytoothpaste.net> <20261123011403.720209-1-sandals@crustytoothpaste.net> <xmqq4id7bjmb.fsf@gitster.g> <awS6dogRASLU3OVx@fruit.crustytoothpaste.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-76192-linux-kernel-git=dewy.ru
From: gitster@pobox.com (Junio C Hamano)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v4] setup: fix hash algorithm detection
Date: Mon, 23 Nov 2026 16:01:48 -0800
Organization: Usenet Network
Message-ID: <xmqqfqwr3xn7.fsf@gitster.g>
References: <20261108011633.1772000-1-sandals@crustytoothpaste.net>
<20261123011403.720209-1-sandals@crustytoothpaste.net>
<xmqq4id7bjmb.fsf@gitster.g>
<awS6dogRASLU3OVx@fruit.crustytoothpaste.net>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: usenet.network;
logging-data="4012374"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:laKl0oUvDG6XoVzt6lbmJOcHoAo= sha256:hvX8ihdE6qgmCMgyI0B5svAlfsQKtePbBcwWNUeS2q8=
sha1:VDzl7RYiRt6wfPxpCnWRfQ6hSNA= sha256:JkSaKr00R69UltWUscwaFev81pdTfHBOo5mRZR/zPjA=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 4CCE1125DC6; Tue, 24 Nov 2026 03:02:14 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=pobox.com header.b=U80biKnV; dkim=pass (2048-bit key)
header.d=messagingengine.com header.b=s22HSoVf
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id DK8bYwtmHnEh;
Tue, 24 Nov 2026 03:02:09 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76192-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=pobox.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 6A6AA125DC8; Tue, 24 Nov 2026 03:01:55 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id B5F6E2CAD3; Tue, 24 Nov 2026 00:01:53 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795478513;
b=x2/YSOVAw2Nnel65ZhwukVn63QqqJg/xn9cP4wPTJ09IqvUDDGYJIhhc4V7Z8gQrWmed
JYGMKa0ja/5dDsHYJtZ2/FYtjV/WZj871fFpScifu5R51+COSITJ70s/WcYPqXRfevUsu
SGgP5qxLBB3sKICVKgqW7v/HBWW8iXtIYFEzYIbhrjzCZqR2r9aZ5c6NJZH2qDkkz2Q73
iMYDI9gWhei5vEWlRHhEdVWyqekAp3ESpDLZ/K0bOMmzdKlvapELTjsR6HKc1BmJbWw5m
8p3X7F66i38ilGTprwHtzJZ0YPwp30doBwenTuILh3fwiQ5Obu9vkuM/AO6KeeJCI9Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795478513;
h=X-Original-To:Received:DMARC-Filter:Received:Received:DKIM-Signature:
DKIM-Signature:X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:
Message-Instance:X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:
X-ME-Proxy:Feedback-ID:Received:From:To:Cc:Subject:In-Reply-To:
References:Date:Message-ID:User-Agent:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:Content-Type;
bh=35Hn0UqI+aOfmWBDGHnEGbzVsR9ygDPj9Nuj7WwsauM=;
b=aIMkkVckAa4jJYgDhkNegihpUR46DujjoEr2SuINoirtDZyl6xkEE5MHoQM0mxBabaCn
tQkYHjTSe9YyauDplskYQbBYK9MNSJ9HUnP6KqWwPI47kNBChIFCt7xwXx/1AjzPYJGSK
TvgKBSC+tPmjdebsJYbm8NpAOlUHT++FqeGPZpREguutbUdv5y7zwnpTdmkpt3qh/kKTZ
VgR8S6DQpJ8Vx6302ii6WDICavq0kyLaO2z/yijTu7JMT4PriQNTpLJW0Espqk71sNaxJ
XVG4UDrgoX6bvOjHkfZ0M4nHNnUF659YPD/D1/a/RmjEq5IBQIT/B914XuGp5dNbeHg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=U80biKnV;
dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=s22HSoVf;
dmarc=pass header.from=pobox.com;
spf=pass smtp.mailfrom=pobox.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 5BBA7606A32C;
Tue, 24 Nov 2026 00:01:53 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=U80biKnV;
dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=s22HSoVf
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=103.168.172.159
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795478512;
b=rSBG3mN52m29vZVitNIXgmiOtF6204qTNdjJzOnHpqJPpB4H/y1hGi2LD44NgnWHaGg5
ftlimS0iPVGn666Yak9iLeY6hbN1/xClJty72z7syK5d1v735yoqsg8YrYASUkT70hOsW
gBNwu7Sl7wnUDVFV8x0CEGgOQriBS1s42mRsdnmFQCrAWnrX144DccLOT9+zRrHIDWAo/
7HCz3CYd8iQuePsB0u6CNzeXWfKamrwDuZgWVUU1yT6W9GESRhueOJk7bsnSAXDWM0GfI
PUEM7oAPuF47cqgbyHkSywKrR8C9HfUI1/HVMRGKreC+zF0qDJZUKRQNbZCrQ2LwZ1w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795478512;
h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature:
X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance:
X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:
Received:From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:
User-Agent:MIME-Version:Content-Type;
bh=35Hn0UqI+aOfmWBDGHnEGbzVsR9ygDPj9Nuj7WwsauM=;
b=p7KcWrGc0ocQzeMZmEePqv/M+v8P5F2sh/ooE0fayhAokpCZhwHs6OjTcZZnIkZCm+Xy
EJRAlMRdHBK1H05Wh62537PCmwKUrB3NwjkulaaoK5NaEm4iax7ZDk7/PTT3Cj2Zaq+Aw
s/1//7a6hBI6ByGZNCSahl8h+U0MnyzvxdEjt4hQtOTk9F40s6pYl4zANjsOMAzTc8i5H
mVlC9YWttNcgL158vIsKstmwvZ0Rw16z7S2cEfifLaa4SaBfs/1V09KCeF5FiEK8+uFh4
Rf3FSvTZHVteBMD0qHrzZkUtrThhKphqjaP8ytA4JMMvbBZrQdLE4bdQEnaIrP+ZqZQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=pobox.com;
spf=pass smtp.mailfrom=pobox.com;
dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=U80biKnV;
dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=s22HSoVf;
arc=none smtp.remote-ip=103.168.172.159
X-Received: from fhigh-a8-smtp.messagingengine.com (fhigh-a8-smtp.messagingengine.com [103.168.172.159])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0DD83606A321
for <git@vger.kernel.org>; Tue, 24 Nov 2026 00:01:51 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0DD83606A321
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com
X-Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52])
by mailfhigh.phl.internal (Postfix) with ESMTP id 1C90C140032D
for <git@vger.kernel.org>; Mon, 23 Nov 2026 19:01:51 -0500 (EST)
X-Received: from phl-frontend-01 ([10.202.2.160])
by phl-compute-12.internal (MEProxy); Mon, 23 Nov 2026 19:01:51 -0500
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc
:cc:content-type:content-type:date:date:from:from:in-reply-to
:in-reply-to:message-id:mime-version:references:reply-to:subject
:subject:to:to; s=fm2; t=1795478511; x=1795564911; bh=35Hn0UqI+a
OfmWBDGHnEGbzVsR9ygDPj9Nuj7WwsauM=; b=U80biKnVmQmfX0UCbLrSPIuJqu
iiEyz0l7/EqutGeaGxy+1EyId1N/b4NCzcFIXGMASl36l6bbRC9DIb1/fHe7F7ql
IUiMcUVxIL3X0mgilgENkud2BNhi0xJRpx7j70ttgtp1rwWubz6e39MKgCYPdBCb
waI6n6A2hTgSN83NRsp8P/CbD6ZGNiOGI9cci+sNzxanUL+FUepVmRx3tCCn63gu
6U3kqkMX4UPKSuqIGMTpQ8Fd5Ba87YuQq7BmY6tuTi7syKZTt4VzM67vk0quQ0ss
/zUQBqd4xi+fTWDRUiwaJoqG4J7wY+bjoafd4XkkCYYfTzeggIV3fFyib0dw==
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=cc:cc:content-type:content-type:date:date
:feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
:message-id:mime-version:references:reply-to:subject:subject:to
:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
1795478511; x=1795564911; bh=35Hn0UqI+aOfmWBDGHnEGbzVsR9ygDPj9Nu
j7WwsauM=; b=s22HSoVfTe7yTywwX0tDDr4F6U6eUvwUucDHOLqQdj11YPxAh3E
amVdx05i9eA5YOJ4Dhmv0mYtThzCs42BqIiB1UfRolrcVZ+v8h/isbxYW0pZ4GWg
oZKbLsJuTBUvP/F80zFVZRXegxwwRb+H7bJvRXUako3aKBwzkCxy8F1mZue4qrqi
tpRqCKKjTwtTOkpIHJMgLsywi4xpYgz2+uJ9EAXTipDcPqbo7IHflR4gguTnEuXu
KVbi424A9KDFDpuZjISlOxA67uNL5Xku5jKTu7EVSF/XmxqZzwp8+Q+uO9VdKl85
ST2pp2BPZY3YR44j6+R/Kdad3519Q7Z+peg==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09;
repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox;
action=sign d=pobox.com a=rsa-sha256;
X-DKIM2-Signature: i=1; m=1; t=1795478511; d=pobox.com;
mf=PGdpdHN0ZXJAcG9ib3guY29tPg==;
rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+;
s=fm2:rsa-sha256:O9fGHNGhL/+jUMGNNnKSsL+/oaZRv2WgkSHoGj9RxzcbZKi
79mAirwHEG0A7AGaWArWyzPlNgDIXNJld7OjuWAcmO7YlvA2Rt2q4oZXCqz5S+Nm
rZ+QdWm1pC2PbXRntj3cJSMXQrsJAnIRPtyK59DZgiQ2+6vjO/QKTjoCs8bHa1uG
qdESu0UuJa1rC2htYFPOTGZsmDU5HG6lLLVoi6wSZHtj0jj28ANifpwp23e2tfKE
QBbnDNjfpvs0Ac7uDm05gTZuFdXzr4ua3SunjhWbl3gThr+40htzcgOZikDrpS+z
jXTte8SiPDC5Xwhodple22feqSkoYC7LeiouvcA==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09;
repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox;
action=mi-m=1; hc=12;
hn=cc,content-type,date,feedback-id,from,in-reply-to,message-id,
mime-version,references,subject,to,user-agent;
X-Message-Instance: m=1; h=sha256:bG1bcENkCCpyYUxY4/fkTVsctUSlz3d34Z8o5X1/A2Y=:/VR7cVOeADdBCGiZxUSEt1/KOX98DAWfwxtL3D+yROY=;
X-ME-Sender: <xms:7tMEa1DT4OMD4i0hxedwHBlokDjqL-O5pukOeS0tc4Rpsv2ZNRy4bg>
<xme:7tMEa6a_gE3cc0srZEOcs5C2r6eTJj-hJuwpuxcb95PxZozFGGVt26vvJdQD84ZqB
JLK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ysE9w>
<xmx:7tMEayoW7yFWmOAWsycyuyucl0jJr0vaVeZ5GHGc0nGqac1Wa8vwYQ>
<xmx:79MEaxoQTjifcbaCYeelZYWQVSv-4z7sk0Y8jSNeTcfmnqEWINiOGA9E>
X-Feedback-ID: if26b431b:Fastmail
X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon,
23 Nov 2026 19:01:50 -0500 (EST)
X-Cc: git@vger.kernel.org, Patrick Steinhardt <ps@pks.im>, Adam Dinwoodie
<adam@dinwoodie.org>
X-In-Reply-To: <awS6dogRASLU3OVx@fruit.crustytoothpaste.net> (brian m. carlson's
message of "Mon, 23 Nov 2026 22:13:11 +0000")
X-User-Agent: Gnus/5.13 (Gnus v5.13)
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list