From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0FfTJ1HWAWR7pAAAbAwnHQ (envelope-from ) for ; Fri, 03 Mar 2023 12:13:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IF3JJ1HWAWSDCAAA9RJhRA (envelope-from ) for ; Fri, 03 Mar 2023 12:13:21 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 79C513A883 for ; Fri, 3 Mar 2023 12:13:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pY3LU-0004Mp-AF; Fri, 03 Mar 2023 06:13:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pY3LT-0004Mb-2u for guix-patches@gnu.org; Fri, 03 Mar 2023 06:13:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pY3LS-0000Um-KO for guix-patches@gnu.org; Fri, 03 Mar 2023 06:13:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pY3LS-00022d-1L for guix-patches@gnu.org; Fri, 03 Mar 2023 06:13:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61910] [PATCH] git-download: Download a bare Git repository from SWH. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 Mar 2023 11:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61910 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Simon Tournier Cc: 61910@debbugs.gnu.org Received: via spool by 61910-submit@debbugs.gnu.org id=B61910.16778419417798 (code B ref 61910); Fri, 03 Mar 2023 11:13:02 +0000 Received: (at 61910) by debbugs.gnu.org; 3 Mar 2023 11:12:21 +0000 Received: from localhost ([127.0.0.1]:59793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY3Kn-00021i-0X for submit@debbugs.gnu.org; Fri, 03 Mar 2023 06:12:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY3Kl-00021V-5O for 61910@debbugs.gnu.org; Fri, 03 Mar 2023 06:12:19 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pY3Kf-0000Pz-Tv; Fri, 03 Mar 2023 06:12:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=NxyuZ1qEdME51HjHRSsjuU8yHZzgadOGe996dPz33PY=; b=kcLnYwD1mOyAm8wxU/Tc OVclNrFrLzt4FpbberTmqsK50hyHRmECuQhlNENGP/XTzomLr8/GTk17sG0g91LCOJbNIG7gvLRv9 6fS41cuoVvHL96hTq7Ank0Q5rQxPTAL3cMarK3RQmG34pGKiskngvcn6axp//LrPtzXzTLNdcdo4L 8DFOzVc6dc/jUNZq+XnQGpGdldDdHic1TJR0Z83HgYsWepOmls1yu2IUuBwCUi07EAPY3w75PTt10 xYviMil8tMTQiebQ1qfhkIwGJTtWk8OLwRlIgGPQuJeZHSa4W6yiOUsf3pgHQ1LdjniFr86RbnhtN mqM2qJZZGvnDpQ==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pY3Kf-0003fU-BA; Fri, 03 Mar 2023 06:12:13 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20230302091233.28226-1-ludo@gnu.org> <20230302120546.1074630-1-zimon.toutoune@gmail.com> <87cz5r5m7a.fsf_-_@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Tridi 13 =?UTF-8?Q?Vent=C3=B4se?= an 231 de la =?UTF-8?Q?R=C3=A9volution,?= jour de la Fumeterre X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 03 Mar 2023 12:12:10 +0100 In-Reply-To: (Simon Tournier's message of "Thu, 2 Mar 2023 14:50:56 +0100") Message-ID: <87a60uxf5h.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677842001; a=rsa-sha256; cv=none; b=bmT0phwoO1/jvec5WqBmzGX25n1Vm00G878bW4X1tXAUPNWQonisC74tYMlh50HjhIFdc7 65z0KDnenmGkdjOG1z7r32/b3nTocfIM3Lx81I/GFWPEwjqjV9TpNgkl60cKhlpNzNWMTu uARRfkfFwXial79BPmOsSvNKKY1zOIweYicfEzaAypsUicoGX6Bc4PlEb4tv0x8HL8Xqo8 CSVRhatmSHS59cecpwc1+cueZnJoaXAUbesjxzvWfF3uCo1hfTYHWw3YJSBSgiwtPquvEm lAvxis4lzUmUIowCSLBLmSV0hjTuhWoCFU6m5rYF1T1EVPkx3t89nLxowEvJYg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=kcLnYwD1; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677842001; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=NxyuZ1qEdME51HjHRSsjuU8yHZzgadOGe996dPz33PY=; b=il0hE0STw1l7d+9AfNiSwkFN+mUGm52Hr0RXlCj4RH9pJ9brr3UDUH9zAJVhX6lSmn+rFv laJVqbIt4kRogqLdaP++8ZtQVf7ieuiGSgrxKxRxkQZgJ/kQttbOErDVHTHpq4NSprQudd +vk0Tny7wc7ThDKiIWVF57oasSlXsMiJfnCW7i+GXkITEqywEW57d/KwOQsrpLYWzdukjO NYKad5k4j0/NzFvRaub7o7E6wvC3Ax/GC/Rz0537K1q5z1OXM4cc3tZggtcsQxHG/UQzCE XqabYw7h2NK1IolqN2F2JH662Ocqt7b5Zv+qKz/IaMEd9fEu8WlQj0RefOwufg== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.60 X-Spam-Score: -2.60 X-Migadu-Queue-Id: 79C513A883 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=kcLnYwD1; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-TUID: DnxEmtZwXv/6 Hi, Simon Tournier skribis: > On Thu, 2 Mar 2023 at 14:15, Ludovic Court=C3=A8s wrote: [...] >> I wonder if we could achieve the same without creating a repo just to >> delete it afterwards, either by invoking a low-level =E2=80=98git=E2=80= =99 command it if >> exists, or using Guile-Git, or doing it ourselves in Scheme. > > Doing it ourselves in Scheme, I do not know. I guess it would be > hard. [...] > From my understanding, this information is provided by: > > $ cat hidapi.guix/.gitattributes > * text=3Dauto > > *.sln text eol=3Dcrlf > *.vcproj text eol=3Dcrlf > > bootstrap text eol=3Dlf > configure.ac text eol=3Dlf Uh, tricky enough. [...] > Kidding aside, I agree that relying on Guile-Git would mean being less > "fragile". Libgit2 has an =E2=80=9Cattr=E2=80=9D interface=C2=B9 that Guile-Git only p= artially binds. That interface works on a repo, so we=E2=80=99d still have to =E2=80=98git = init=E2=80=99 just to be able to read those attributes. Not great. =C2=B9 https://libgit2.org/libgit2/#HEAD/group/attr But anyway, skimming through gitattributes(5) has convinced me that we should not try to implement it by ourselves. :-) > About low-level 'git' command, maybe the same could be achieved > without "git init" + "git add" + "git commit". Well, my gitology is > not enough skilled. :-) I did a quick search and didn=E2=80=99t find anything so it looks like the strategy you chose is the right one. Thanks, Ludo=E2=80=99.