Subject: [PATCH] doc: suggest using pre-inst-env for git-send-email on foreign distros
From: Raphaël Mélotte <[email-masked]>
To: [email-masked]
Cc: Raphaël Mélotte <[email-masked]>
Date: Thu, 28 Sep 2023 15:58:03 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

On foreign distros, not using pre-inst-env when using git-send-email results
in a backtrace ending with: no code for module (guix ui)
This can be confusing as users did not have to use pre-inst-env to use
git-send-email before.

* doc/contributing.texi (Sending a Patch Series): add a note to suggest using
pre-inst-env when calling git-send-email on foreign distros.
---
 doc/contributing.texi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/doc/contributing.texi b/doc/contributing.texi
index 0de47a403b..c0676e28fa 100644
--- a/doc/contributing.texi
+++ b/doc/contributing.texi
@@ -1574,6 +1574,11 @@ Sending a Patch Series
 you can invoke it via the @command{etc/teams.scm help} command.  For
 more information regarding teams, see @xref{Teams}.
 
+@quotation Note
+On foreign distros, you might have to use @command{./pre-inst-env git
+send-email} for @file{etc/teams.scm} to work.
+@end quotation
+
 @unnumberedsubsubsec Multiple Patches
 @anchor{Multiple Patches}
 @cindex cover letter

base-commit: ce0cc6137df81919389f61671096a6ce701c0889
-- 
2.41.0