all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Evgeny Pisemsky <mail@pisemsky.site>
To: 71143@debbugs.gnu.org
Subject: [bug#71143] [PATCH] services: gitile: Opt out of Git safe dir check.
Date: Mon, 05 Aug 2024 11:11:52 +0300	[thread overview]
Message-ID: <87plqnfkxj.fsf@pisemsky.site> (raw)
In-Reply-To: <604e51b2f51141b2b8d1d3d71bf9412ab7760563.1716459581.git.mcsinyx@disroot.org>

[-- Attachment #1: Type: text/plain, Size: 388 bytes --]

In the meantime I did some searching and found out that owner check
can be disabled right from guile without any external config files:

https://gitlab.com/guile-git/guile-git/-/blob/47541c4eb28ca81530b5541834a4d105a808954f/git/settings.scm#L77

Attached example of gitile package with modified source that works for
me with existing service. It can even be made optional in gitile code.

[-- Attachment #2: gitile.scm --]
[-- Type: application/octet-stream, Size: 465 bytes --]

(use-modules (guix packages)
             (gnu packages version-control))

(package
  (inherit gitile)
  (source
   (origin
     (inherit (package-source gitile))
     (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)))))))

      parent reply	other threads:[~2024-08-05  8:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-23 10:19 [bug#71143] [PATCH] services: gitile: Opt out of Git safe dir check guix-patches--- via
2024-05-23 10:28 ` [bug#71143] [PATCH v2] " guix-patches--- via
2024-05-24  5:28   ` Julien Lepiller
2024-05-26 12:11 ` guix-patches--- via
2024-08-05  8:11 ` Evgeny Pisemsky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87plqnfkxj.fsf@pisemsky.site \
    --to=mail@pisemsky.site \
    --cc=71143@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.