diff mbox series

[bug#72590] gnu: gitile: Disable owner validation to allow group access.

Message ID 87ttfqqd3o.fsf@pisemsky.site
State New
Headers show
Series [bug#72590] gnu: gitile: Disable owner validation to allow group access. | expand

Commit Message

Evgeny Pisemsky Aug. 12, 2024, 9:55 a.m. UTC

diff mbox series

Patch

From 8c11f4702afbc73dca0836618cb49316730f5ff1 Mon Sep 17 00:00:00 2001
Message-ID: <8c11f4702afbc73dca0836618cb49316730f5ff1.1723456443.git.mail@pisemsky.site>
From: Evgeny Pisemsky <mail@pisemsky.site>
Date: Mon, 12 Aug 2024 12:00:25 +0300
Subject: [PATCH] gnu: gitile: Disable owner validation to allow group access.

* gnu/packages/version-control.scm (gitile): Disable owner validation to allow
group access.

Change-Id: Ifbc02811dd70b39809c8ab72caa12904fe61f476
---
 gnu/packages/version-control.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 9f67237d5d..8744e145b9 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -53,6 +53,7 @@ 
 ;;; Copyright © 2023 Josselin Poiret <dev@jpoiret.xyz>
 ;;; Copyright © 2024 Hilton Chain <hako@ultrarare.space>
 ;;; Copyright © 2024 Suhail Singh <suhail@bayesians.ca>
+;;; Copyright © 2024 Evgeny Pisemsky <mail@pisemsky.site>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2018,7 +2019,14 @@  (define-public gitile
               (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "1wb1rajcrzdqjncv40s7hjsnvlh1gq4z9pn9gf210g1iy35vimmz"))))
+        (base32 "1wb1rajcrzdqjncv40s7hjsnvlh1gq4z9pn9gf210g1iy35vimmz"))
+       (modules '((guix build utils)))
+       (snippet '(substitute* "scripts/gitile.in"
+                   (("^.*run-server.*" line)
+                    (string-append
+                     "    (use-modules (git settings))\n"
+                     "    (set-owner-validation! #f)\n"
+                     line))))))
     (build-system gnu-build-system)
     (arguments
      `(#:imported-modules ((guix build guile-build-system)

base-commit: 174ecf5b1077d29498d9de22e27b13047f314feb
-- 
2.45.2