From patchwork Sat Mar 22 17:00:32 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: 40631 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 A5B4D27BBE9; Sat, 22 Mar 2025 17:03:57 +0000 (GMT) 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 DFB0327BBE2 for ; Sat, 22 Mar 2025 17:03:55 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tw2GC-00071I-NQ; Sat, 22 Mar 2025 13:03:48 -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 1tw2EZ-0006LB-B5 for guix-patches@gnu.org; Sat, 22 Mar 2025 13:02: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 1tw2EZ-0005EG-10; Sat, 22 Mar 2025 13:02:07 -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=RWREVBeK2cTeHO/LeIk+A2Jo57gLuMlsEe5Pa+tc8rU=; b=HuE6PDK5I5ATIBstowB8XG/q4ul+FQQAq7OjkR+/dexipIyYFRCNtJUlMyLG265OBEQpi7kzWITSRcRtfbfA129NZ/3B4kVR8Y0f7KM0ojW6qZTosNhVwhs84dkG52pAqsavM7VIThL67MYslV840C5yxVkGa/vfdBtDL58bUK/9hqscaeWKj6oG9cRTK/Y3EMd7LEI7xlMe1Ylqtl5ZWtiMMlGKz6E0Wsdl1D4YAhdoX/QC36EGaHt2S+CTx3nuk1ANzTbzkBZLzbM5n+MSQk3Kz0cME3nAaogAxsPF6grxVfpefx+C8wTs3lDmeul+G0gMn/Te3sgfcF8ouViHOA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tw2EY-0006hy-R0; Sat, 22 Mar 2025 13:02:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77186] [PATCH 12/13] 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: Sat, 22 Mar 2025 17:02:06 +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.174266288525633 (code B ref 77186); Sat, 22 Mar 2025 17:02:06 +0000 Received: (at 77186) by debbugs.gnu.org; 22 Mar 2025 17:01:25 +0000 Received: from localhost ([127.0.0.1]:45112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tw2Dt-0006fG-8J for submit@debbugs.gnu.org; Sat, 22 Mar 2025 13:01:25 -0400 Received: from wolfsden.cz ([37.205.8.62]:58368) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1tw2DH-0006bd-3L for 77186@debbugs.gnu.org; Sat, 22 Mar 2025 13:00:48 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id 16C6F37F478; Sat, 22 Mar 2025 17:00:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1742662845; bh=aFOBzXfJBbSOcnBzy5LkChYMe/Py+BaFgFMIU3X01uI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Hu/L4aiDrYmWKHjxGoVWSRolXeOze4X4GVEUe0REZ2WTiMyXJfd4wqd4SsRG099bl 8CRKZSVsg0eoPo2a/6MfLRKoz8q7bANkiHWsRyxdfZrJaB91NXA5ZZ7dVnORRPW2ib NX7/iXAxOEMjkqc6fn6bIlxy3Qk0jJtN4ny4gwj3zK4Tm+qBSAiNAcdeFtgJ43NwQt TDQq6+qiGK68plSEUeB0lxopXsmotXJTt6mjr5USnVlPLfVCfeHiW+2H0jo2aiTS1G dZbagkidKXXVLUuzNpA5TFj8pVkV0EhqnF+NIy/i0KWLRFrO6AJezNUKvdEhDIB/Jm nE7yAx/nkzz6+iuXVfyCgtWRD50tSof+brkmM3trwuRzQ0MDh9eYxYZR214wdI+4al dXYDoBKMEZoKyELWSncc0BtzfTnsMVYAfjVTiNY8jt9i4PreBWzF98U8w/0Wkmf3aq eaTlXnrXiZRXVz516DRjmbG766QiiEijm5Xd8KaeFFLFV1Egb2wMTjMgzKJV6CVze+ 9GE6Y8Gi4bSKH07el/l32xyriUz6w8v8UAP3tZms2MuvKfALLJKgYdl0G9D+iP+ry+ M7NFWJS86Oqq5Df4YN2p9BwPs9mnqGS6EZCr+kVqVWJ8BgZdlb+ZPNSwojddEzE8xY ccadAFdjgB+P7Tkb1fZ+Vkbg= Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 9EE6737F9DA; Sat, 22 Mar 2025 17:00:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1742662844; bh=aFOBzXfJBbSOcnBzy5LkChYMe/Py+BaFgFMIU3X01uI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=vaOzAVAGL5ai4idOWAwZtGuRJPzoJSy/FEc+dsohbQ6ELsEBBS5XUxRJ3kDuKU+6r U9qqg5NlXVHwsVjHpk1nL8g86fxmLMmUP+AkMddGtY18yO6fdKr5Vxb3ccB4dE0RGH iAvzX1IbdzHBS2pSg2g2qpUcsTf6W7H5UxcwVGuz4dgYgX6qjtS3BxMdMCQe9rwSDL R3ZLbISL44BoPQpsQYwbavik3iojSpFJHkFRVE2Vj4oWcSDBKfXbtfiJSokHY4e/I1 2WGD6KAdZjQ1DuVEl3nu+tt0CUj2jqnJxxnBRPSrhoyLIU2jnAvT6zq+7irCro2jhe bxqGV6McNt5ykyqrfnCFxnBmaSejv/991VwxxEoIekoy/h/ne5oJchyAsfT2UeKs2t 1sXNQ7znF2K0EztrmqqIAw4LPc2nFnTmeGc//BQJZLBwknotHHyC75/6vFGIkSXPQW WPDv4JW7FMAOf0X0tnlsmDNP/AOGUMXYSgJ4rI6SiJXNoiMKpGUfTkroo+l+iZHS3w PexHEuk9B+zo+LYIM6CRcm3kkW5QGSYSHH5g1BFbm1KY611ajteYqQKk/abjEwi2Ij V9mQrt8sqEiiuGqCNRRCx2rzfefzGhvsjTogdcPQ4OK4UOXXES7heD1fxq+3S8mF+0 g3ttK2Yby0w/VUiTf0WThsQo= From: Tomas Volf <~@wolfsden.cz> Date: Sat, 22 Mar 2025 18:00:32 +0100 Message-ID: <1d370fb258e2a07c98ce83cf3df57a0d29cd997a.1742661306.git.~@wolfsden.cz> X-Mailer: git-send-email 2.48.1 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 3332813a02..f8fa1ab3bd 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -41189,6 +41189,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 712f0b1756..4f36495740 100644 --- a/gnu/services/version-control.scm +++ b/gnu/services/version-control.scm @@ -72,6 +72,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 @@ -330,17 +331,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" @@ -348,6 +351,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*