Article View: linux.kernel.git
Article #2544Re: Default object format for new repositories in Git v3
From: "brian m. carlson"
Date: Fri, 06 Nov 2026 20:46
Date: Fri, 06 Nov 2026 20:46
52 lines
10831 bytes
10831 bytes
--DImmDjSrzffVQ5Eg Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2026-11-06 at 16:50:03, Adam Dinwoodie wrote: > Hi folks, >=20 > As part of preparing for Git v3, in particular for Nixpkgs, I've been > running a bunch of tests using Git built with > `WITH_BREAKING_CHANGES=3D1`. Somewhat to my surprise, `git init` seems > to still be creating new repositories using sha1 rather than sha256. > Is this expected? >=20 > For reference, I've attached the test script I've produced as a repro > that can be run from the root of a Git checkout, although it does > require Nix. I've confirmed the behaviour at v2.56.0, next > (972d6e3ab651d838b30a8d5d70d8ef6ced05a986) and main > (0ffa3e35c7c82ab8d0de226149fb03b3f7674d05). >=20 > For a simpler repro that doesn't require Nix, build Git with > `WITH_BREAKING_CHANGES=3D1`, then run: >=20 > ``` > git init tmpdir > git -C tmpdir rev-parse --show-object-format > ``` >=20 > This will print "sha1", when I'd expect "sha256". This does appear to be broken. I have a patch that should fix it that's running through CI right now. I'll send it once it's green, either later tonight or tomorrow. --=20 brian m. carlson (they/them) Toronto, Ontario, CA Speaking for myself only --DImmDjSrzffVQ5Eg Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- wr0EABYKAG8FgmruPKAJEHwMSWKIh6KBRxQAAAAAAB4AIHNhbHRAbm90YXRpb25z LnNlcXVvaWEtcGdwLm9yZ5pTnswCH8tIiUqjOo9XXyY479zwaKRvSFiv6PDeP7ab FiEECCzmip28ZfuD0cORfAxJYoiHooEAAKHCAP9OtHwzHp45bOU0uqef1dB3i35V iJqerR1FhOmLmMOV1gD7BFQS3uLDvL5trumhfveacjqSTg4x7UUKLmTDeanKtwo= =8FuM -----END PGP SIGNATURE----- --DImmDjSrzffVQ5Eg--
Technical Details
Message-ID:
<au48oHXom4FGzwb9@fruit.crustytoothpaste.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74724-linux-kernel-git=dewy.ruReferences:
<CA+kUOampvjU3=VK3VGhYw2L5-E+LBsk=Q0UrAxhhR7hC5SUdJg@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74724-linux-kernel-git=dewy.ru
From: sandals@crustytoothpaste.net ("brian m. carlson")
Newsgroups: linux.kernel.git
Subject: Re: Default object format for new repositories in Git v3
Date: Fri, 6 Nov 2026 20:46:24 +0000
Organization: Usenet Network
Message-ID: <au48oHXom4FGzwb9@fruit.crustytoothpaste.net>
References: <CA+kUOampvjU3=VK3VGhYw2L5-E+LBsk=Q0UrAxhhR7hC5SUdJg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature"; boundary="DImmDjSrzffVQ5Eg"
Injection-Info: usenet.network;
logging-data="3972176"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:3LvBkhatV2bpcA5uy/yLh+ueudo= sha256:O6yZD5YBWn9lzOkLbRaog0KzVedPZD1IksKDudpSYXg=
sha1:QpOED4lYz1VyjaPsPPmNpLLLn4w= sha256:2Gk3qWhaGs8szpXL4nyEiVuyHZeRmNU5MTHApoY1IVE=
Content-Disposition: inline
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 36A98113322; Fri, 6 Nov 2026 23:50:55 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 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] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (3072-bit key)
header.d=crustytoothpaste.net
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 3ZAVCRJY_DH9;
Fri, 6 Nov 2026 23:50:51 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-74724-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=crustytoothpaste.net
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 54AD7113320; Fri, 6 Nov 2026 23:50:41 +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 60B6439C63; Fri, 6 Nov 2026 20:46:30 +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=1793997990;
b=sBff4OVws4M8Dc7wdps8fZf1ygP+NEPY1amo8NgnmXX8XMn3KzFlp7GoggOOnbXAQ7gq
ZUJTHxLVlMuT8OQ9uHZD+d7/s46Dx/yBB/ssGmRmCp1lxzI9DED4mgG/99lov6A0KKJ7A
3JJFFAoKuGxPW2wDEN9o8MqcYxlUdbeAFgML6Pj2DRmzAnRK87m8ng8CpcNRmpDd+5xgp
F79VJx/kel3wkYWqCpWj6eM1gs5/SVsV05WQcYfN92rsvVvnb2KHFN9FalMjR4fJCHozu
EDE7DLWgXVPc9lHnnxji74RXHyC3QJuxSCdsJR4PfKO0DXLwTQQaQRsIrwgS21ICmkg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793997990;
h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
From:To:Cc:Subject:Message-ID:Mail-Followup-To:References:
X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
Content-Disposition:In-Reply-To:User-Agent;
bh=7FXzPIvlQ+LPORZ89D03kBGjwqrQM6jvUPKLOIkWb4o=;
b=U2M+US6QM+iGNc4Wef8PeMfESpaSlZnd3PmuEjAgtLYSB1yNPt1Trc/qGA+m0EN1ufMc
xAN4Y9aKSz7EDdpbbhtXBjKOucFwaLEwN4YL3WPbl3Xlt6H5NU5b3MakwqCANTJ2zM/I+
Rmf9Z3Zh3AxnVQ1SmfGZKnNvsBBUp2peHnjOxtH4d0d/xpwnHo72Um/5KY7OpJKMlzWFR
WK8zPhIspiB+mFGP6A4sNg+eNcEddKRCK8sWZCc1e2xD1LZTnvawDWu5EQL/zNVKoIqUJ
ZDWnQ+M/Tf1eiG2n+ccnGB00NYuFfYHkT74loSYV6JAwcygJKQOv0Izw7ZJYTRT9YXg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.a=rsa-sha256 header.s=default header.b=TSKtt3KE;
dmarc=none header.from=crustytoothpaste.net;
spf=pass smtp.mailfrom=crustytoothpaste.net;
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 EDD7D606A335;
Fri, 6 Nov 2026 20:46:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (3072-bit key, unprotected) header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.a=rsa-sha256 header.s=default header.b=TSKtt3KE
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=172.105.7.114
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793997988;
b=Ckxcqyt0I/AEhXhZKYRsqfT7vVDyevsR9JhP0OreYt4mGHYIYPiehUD44Ii30eAunumM
xwJqjHSvjeQlRI1v1qgTEtpNiOB6yLkdo0rETZkTEuSeXogujI9pBqklZ5m2FElaM6qYg
gf0F0oysyxt8kqblNe5G0WfJ36rZpmsOT93nAZSJduv9qxVupCLZ11jEcoIcEKKFXT+N3
eDfWgK6NqDexAdKOZ0AhZMt9Rb2DiTZCQprEUV7urmPR6u0tH4Ub5fF0b4cqOn1X1wzFr
WFJ6Ykc/incVH89xngsuJ/AcbQae7PxnCUv1rJy9Fp/wc8gZrtX4ILX+ungknqLA6Ig==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793997988;
h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:
Content-Disposition:In-Reply-To:User-Agent;
bh=7FXzPIvlQ+LPORZ89D03kBGjwqrQM6jvUPKLOIkWb4o=;
b=SI2MWLmN7b9zLXgem2r95CMk1u633NxPNL1rKFB55AOE/LIW3tnMO5F5IBSx2xK+qo8N
mLUxUhN8RuuMIAeYalkbP8rPKTiO5UX0RV6G9sGBbcddhxJcAZthun4K8mffY0hyYuR/D
1u3ciWoXDOWz931JshqjkvffCpkhB5bCJl/UjVfk1VtFwqjtt84/cI/g0FIDIqumVFBqc
+xlayhbUyAOVqnPUvqQEIo47YtRwoWnwDgdIo6O3O4itTLMxwwyJeckvwQll5L9Lq/8pu
Q3V1n6RVuUYV57ro31ZGi2IkQq2C7IIwLoxmOjqqNeuZD03Oht7+W2gT0dA7xzjTIDg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none header.from=crustytoothpaste.net;
spf=pass smtp.mailfrom=crustytoothpaste.net;
dkim=pass header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.a=rsa-sha256 header.s=default header.b=TSKtt3KE;
arc=none smtp.remote-ip=172.105.7.114
X-Received: from complex.crustytoothpaste.net (complex.crustytoothpaste.net [172.105.7.114])
(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 92AB5606A326
for <git@vger.kernel.org>; Fri, 6 Nov 2026 20:46:27 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 92AB5606A326
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=crustytoothpaste.net
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=crustytoothpaste.net
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crustytoothpaste.net;
s=default; t=1793997986;
bh=fvGPxWSqFy5frjjDcyZul56FSHEYS/f56nJLKwVK6ac=;
h=Date:From:To:Cc:Subject:References:Content-Type:
Content-Disposition:In-Reply-To:From:Reply-To:Subject:Date:To:CC:
Resent-Date:Resent-From:Resent-To:Resent-Cc:In-Reply-To:References:
Content-Type:Content-Disposition;
b=TSKtt3KEYDv3uWC2ckqf7WdY98kNBfCHysLsKV4m2UV7n45SwHMznuKCJWpKl9Zxp
FLq/X9NLgVBFs08SVkN2LK+M5+EEYCqUwgTICvr7eVHLLfqfJ2t62+0SX+RjGRTpqT
+B/7Ap0Y/KyZYL84TMaBvZqrj3NVUDXkfyjp9Wz4UZRMtEIw2FRYTecQQZHYNsqjoe
O8K+fExiJeQlHqI+EMuB45BHmoEtARcEwtPQ2P9Q4m/8EGbnDtYVyiuv07BhEOZ5jX
bnJCt9Qjnhq/R31cEpRAZsjGRX7uMUgscVsvfDc9UGB1Wr79e5DupPeTMdUllA292c
x3NLsrexSpCrL8wPrVRDLje0MCPPUAaGRNu/Pt1CjNQ8GWEWFIiM0/LK6/+MCDHErk
GuVzz5aFKUlt0UBtmgZobQdxZWXbKLMQSzU0IT4rfyCScibpFKnv4ACWaXIr3qNEQp
at744eHMBwLnRPf4TbN+PMpi7Mb6A26Tvx3QkNWQDtDw056ujug
X-Received: from fruit.crustytoothpaste.net (unknown [IPv6:2607:f2c0:f00f:f901:828b:3227:a916:b7f5])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by complex.crustytoothpaste.net (Postfix) with ESMTPSA id 02CAC200AA;
Fri, 6 Nov 2026 20:46:25 +0000 (UTC)
X-Cc: Git Mailing List <git@vger.kernel.org>
X-Mail-Followup-To: "brian m. carlson" <sandals@crustytoothpaste.net>,
Adam Dinwoodie <adam@dinwoodie.org>,
Git Mailing List <git@vger.kernel.org>
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
X-In-Reply-To: <CA+kUOampvjU3=VK3VGhYw2L5-E+LBsk=Q0UrAxhhR7hC5SUdJg@mail.gmail.com>
X-User-Agent: Mutt/2.4.1 (2026-07-04)