Subject: bug#66616: closed (Re: [bug#66605] [PATCH v5] teams: Adjust shebang to use 'guix repl'.)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 23 Oct 2023 00:41:02 +0000

Your bug report

#66605: [PATCH v2] etc: gitconfig: Run etc/teams.scm from correct environment.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
66605: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66605
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#66605] [PATCH v5] teams: Adjust shebang to use 'guix repl'.
From: Maxim Cournoyer <[email-masked]>
To: Clément Lassieur <[email-masked]>
Cc: [email-masked]
Date: Sun, 22 Oct 2023 20:39:37 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Clément Lassieur <[email-masked]> writes:

> Maxim Cournoyer <[email-masked]> writes:
>
>> This ensures the correct Guix dependencies are always available for the
>> script.
>>
>> * etc/teams.scm.in: Rename to...
>> * etc/teams.scm: ... this.  Adjust shebang.
>> * .gitignore: No longer ignore it.
>> * configure.ac: Do not process it with AC_CONFIG_FILES.
>>
>> Fixes: https://issues.guix.gnu.org/66605
>> ---
>
> Sounds good to me!  Of course, please commit it as your own.
>
> Thank you very much,
> Clément

Done!  Thanks for the report!

-- 
Thanks,
Maxim

Subject: [PATCH v2] etc: gitconfig: Run etc/teams.scm from correct environment.
From: Clément Lassieur <[email-masked]>
To: [email-masked]
Cc: Clément Lassieur <[email-masked]>
Date: Wed, 18 Oct 2023 23:10:24 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

* etc/git/gitconfig: Prepend "guix repl" to the etc/teams.scm script so that
any user that has git:send-email installed can use it in the Guix checkout
without changing their environment.  (teams.scm uses (git) and (guix ui).)
---
Actually I had forgotten about `guix repl`.  Maybe this patch is better?

Clément

 etc/git/gitconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/git/gitconfig b/etc/git/gitconfig
index 907ad0180454..abcd494d62e8 100644
--- a/etc/git/gitconfig
+++ b/etc/git/gitconfig
@@ -14,5 +14,5 @@
 
 [sendemail]
         to = [email-masked]
-        headerCmd = etc/teams.scm cc-members-header-cmd
+        headerCmd = guix repl etc/teams.scm cc-members-header-cmd
         thread = no

base-commit: 5498835bb38c0de57f284f0fa6b1178ecdcaf678
prerequisite-patch-id: d95e49e4fc059972fc5a7b2c92816df2228a0af1
prerequisite-patch-id: a0dca8c3175d6ce71c77e220c4ac98b6e97cef56
-- 
2.41.0