From patchwork Mon Mar 31 22:10:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomas Volf <~@wolfsden.cz> X-Patchwork-Id: 41103 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 925B727BBE2; Mon, 31 Mar 2025 23:13:16 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_ALL,DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0ABCA27BBE9 for ; Mon, 31 Mar 2025 23:13:16 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tzNN5-0000Po-B8; Mon, 31 Mar 2025 18:12:43 -0400 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 1tzNMV-0000Cs-2M for guix-patches@gnu.org; Mon, 31 Mar 2025 18:12:07 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tzNMU-0006yr-0L; Mon, 31 Mar 2025 18:12:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=aFv2OAtZxtzfPovzGpiyp853CxSPjEdNYIS9okn7nfM=; b=IxEfwZ9gqaKrMCUWB179qLVgdJ3chUsdQKqgT7NvVDtBOEUgG/RSC2M1noNbK944ppUXLuWmNGpK4TM1nGWuXx/fTyskr1J82XyJItb4AAcN2KVVjy56RsxfQnHAGpZ8IvSMBo0qT8vmkDYUxHZQC2OYR1Mp58I9sLhGUncLmue+cI0y1M5HGyrguxyyUGy9i5myBPTpBsNSbbSsavLrcpTs3SKTrsICrrVouXvFb0oB3w5t2D6XWgmdL5uktSpj6R3YBub2YAhvMYmlXkjdGn+8GmzsS40tqjQQUdVWfYqV07nFeIl0aEltW0DXJBIluLgObsO5DD/MjViftqB7HA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tzNMT-0000bP-RS; Mon, 31 Mar 2025 18:12:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77186] [PATCH v2 12/14] services: gitolite-git-configuration: Add receive-fsck-objects field. Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" Resent-CC: ludo@gnu.org, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Mon, 31 Mar 2025 22:12:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77186 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77186@debbugs.gnu.org Cc: Tomas Volf <~@wolfsden.cz>, Ludovic =?utf-8?q?Court=C3=A8s?= , Maxim Cournoyer X-Debbugs-Original-Xcc: Ludovic =?utf-8?q?Court=C3=A8s?= , Maxim Cournoyer Received: via spool by 77186-submit@debbugs.gnu.org id=B77186.17434590701966 (code B ref 77186); Mon, 31 Mar 2025 22:12:05 +0000 Received: (at 77186) by debbugs.gnu.org; 31 Mar 2025 22:11:10 +0000 Received: from localhost ([127.0.0.1]:43358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tzNLa-0000Vb-AG for submit@debbugs.gnu.org; Mon, 31 Mar 2025 18:11:10 -0400 Received: from wolfsden.cz ([37.205.8.62]:41016) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1tzNL6-0000Qc-S3 for 77186@debbugs.gnu.org; Mon, 31 Mar 2025 18:10:42 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id 1804E31D178; Mon, 31 Mar 2025 22:10:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1743459039; bh=F+HqRt7oaZcJSFSsRYlekahZxKXt8LaLsv57/D8uaPw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=J8HmQDkP844aG2tMtRhxfP9Ei+3Bg0kZrB9jN0znkt4vnxlmsEeO8MWRpq0DDuVD9 mNSKyW2OAL9sPU8fJqj8BDr5FxRmc7AtXv0YmlWUnzzMhU+/vAVKRA2a1m+3ttJZMO Bvs41+59asjqFjTqmZOtkZ4sQL8lPXkuLiqASFXb60QZWk+a2zdiKDiJkO4lM2anGT L+uDBxKOm0AzssKZ4o6Lyiw19wm1PaCcD/BRZzWiFC6PaUeg9uZMppxduCVZU5PWD2 rK2108LZgZOfI+nKorGIpNee98amXvb5BC7go8yK0eZ/lGTtL2/lsO/P9rzYFw8Wdg ehURHkWsMNtJTk6ad9T8JYxyHcpewfNrFyzaoFoTC/F6in64tTEMkbGRD3FzWemvA4 JiazRaIoRFi37nU6E9U5uTOwRRvkYjbb5/97D5voNjY7mgCH/rbCnbJOcCxOakZiMV 42Gr7R2Xzoo/FNLigUMoQnA5Ks779bIp51bVEMCNH5quEi2CA6BkNTl5kUGBKU1bLf 5Tb6VTKQhtkEcAueWNwUkdsaVuYNfmfIhier7gzmoakVwKc0+Z+sBKjngQItBjPYTT 0UcNReGHtbHikE/UkZB2z5RuVaLve3RTAjHYrvejq57Xxu8DUysIqRg/74oDsVqoH6 31WZLEqL+K+5WyCdfU1kkP9w= Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 919ED378FC5; Mon, 31 Mar 2025 22:10:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1743459038; bh=F+HqRt7oaZcJSFSsRYlekahZxKXt8LaLsv57/D8uaPw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=dojzs1fKFCdDBvxwYoBLHLlFhswadvsHyj5tfF5o59wf9HvMJuNcvsxkS2y64vXRE nxWga+9lNRDAGIcWR4VJNfrLgkeCjjMESt2/6meMWZrCFu6rp735f50jLJRTKtJv4z S4NeYZXnSANpMJWM3VEcrRCSGrBbFK3Wu5VH86g7rkT0z4Vdmi+VVteWY3uYW+Ywmv oTtVkvH7ICNy+HSxA59Idjf+q9cpnNPU++QosmAe7fxg0+FHbFsUiSd9NH78os1kH1 48zegDbS1Mcbb6DShVRcgT13fUvlE5ScERYv4uIxhVxgC2mHKghJtZ2uiB3ufl85Kq DcGFWWLIFMctRCCz7tP3ZK7mSoTW3v934wZPvNhwltOGEUMRexlw14Dv/XmkqyhKKZ id8tzF8Onqc/qkIVtI3JaVV2JMOukHNy/K8Mrb7l9UGC1osuzD2Nr8cEVdRu8BTyKi 6+az2Yt3uTK+ZFUkrV8A8bEghBNx8jAYqmBJA7UI6D40d8Qh8+IMCji4mDRsFZGD2f zYJ8H63teDqCIe9zaFwlfOI5FW7aB8bm/BvbIFzcCxM8/C/Nup7KKDzWOFXqkzt9VG N1s1HZ9q7pjp0OEZSzVSjCs5Dw5FwPqcPZTTnpb/UzbLou/Gfali8g99ewvJ8G2aXq Y1kDY70F0vRtUWBqOuV6vVes= From: Tomas Volf <~@wolfsden.cz> Date: Tue, 1 Apr 2025 00:10:18 +0200 Message-ID: X-Mailer: git-send-email 2.49.0 In-Reply-To: References: MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/services/version-control.scm (): Add receive-fsck-objects field. (gitolite-git-configuration-compiler): Handle it during configuration file generation. * doc/guix.texi (Version Control Services): Document it. Change-Id: Iceb02f60b8ef26138961aefef4e56ca83df0e19f --- doc/guix.texi | 3 +++ gnu/services/version-control.scm | 21 ++++++++++++++------- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 08a9c44e5b..fec6457c08 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -41103,6 +41103,9 @@ Version Control Services If true, set the @code{init.defaultBranch} option to that value. Common values are @code{"master"} and @code{"main"}. +@item @code{receive-fsck-objects} (default: @code{#f}) +If it is set to true, git-receive-pack will check all received objects. + @end table @end deftp diff --git a/gnu/services/version-control.scm b/gnu/services/version-control.scm index 12653b3cea..1e21174ea9 100644 --- a/gnu/services/version-control.scm +++ b/gnu/services/version-control.scm @@ -73,6 +73,7 @@ (define-module (gnu services version-control) gitolite-git-configuration-name gitolite-git-configuration-email gitolite-git-configuration-default-branch + gitolite-git-configuration-receive-fsck-objects gitolite-service-type @@ -331,17 +332,19 @@ (define-gexp-compiler (gitolite-rc-file-compiler (define-record-type* gitolite-git-configuration make-gitolite-git-configuration gitolite-git-configuration? - (name gitolite-git-configuration-name - (default "GNU Guix")) - (email gitolite-git-configuration-email - (default "guix@localhost")) - (default-branch gitolite-git-configuration-default-branch - (default #f))) + (name gitolite-git-configuration-name + (default "GNU Guix")) + (email gitolite-git-configuration-email + (default "guix@localhost")) + (default-branch gitolite-git-configuration-default-branch + (default #f)) + (receive-fsck-objects gitolite-git-configuration-receive-fsck-objects + (default #f))) (define-gexp-compiler (gitolite-git-configuration-compiler (config ) system target) (match-record config - (name email default-branch) + (name email default-branch receive-fsck-objects) (apply text-file* "gitconfig" `("[user]\n" "name = " ,name "\n" @@ -349,6 +352,10 @@ (define-gexp-compiler (gitolite-git-configuration-compiler ,@(if default-branch `("[init]\n" "defaultBranch = " ,default-branch "\n") + '()) + ,@(if receive-fsck-objects + `("[receive]\n" + "fsckObjects = true\n") '()))))) (define-record-type*