From ef8ae8df2b84a01e1751bfd47696dd14bdd8af9e Mon Sep 17 00:00:00 2001
From: Arun Isaac
Date: Sun, 9 Jun 2024 20:22:56 +0100
Subject: cgit: Use git-without-safe-directory-check by default.

* guix/forge/cgit.scm: Import git-without-safe-directory-check
from (forge git).
(<cgit-configuration>)[git]: Set default value to
git-without-directory-check.
---
 guix/forge/cgit.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'guix')

diff --git a/guix/forge/cgit.scm b/guix/forge/cgit.scm
index 805f47f..0f3aaf2 100644
--- a/guix/forge/cgit.scm
+++ b/guix/forge/cgit.scm
@@ -1,5 +1,5 @@
 ;;; guix-forge --- Guix software forge meta-service
-;;; Copyright © 2023 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2023, 2024 Arun Isaac <arunisaac@systemreboot.net>
 ;;;
 ;;; This file is part of guix-forge.
 ;;;
@@ -20,6 +20,7 @@
 (define-module (forge cgit)
   #:use-module (forge environment)
   #:use-module (forge fcgiwrap)
+  #:use-module ((forge git) #:select (git-without-safe-directory-check))
   #:use-module (forge nginx)
   #:use-module (forge socket)
   #:use-module ((gnu packages emacs) #:select (emacs-minimal))
@@ -73,7 +74,7 @@
   (cgit cgit-configuration-cgit
         (default cgit))
   (git cgit-configuration-git
-       (default git-minimal))
+       (default git-without-safe-directory-check))
   (server-name cgit-configuration-server-name)
   (repository-directory cgit-configuration-repository-directory
                         (default "/srv/git"))
-- 
cgit v1.2.3