[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50359] [PATCH 1/3] tests: git: Don't read from the users global Git
From: |
Xinglu Chen |
Subject: |
[bug#50359] [PATCH 1/3] tests: git: Don't read from the users global Git config file. |
Date: |
Fri, 10 Sep 2021 18:21:17 +0200 |
* guix/tests/git (populate-git-repository): Set the GIT_CONFIG_GLOBAL
environment variable to the temporary Git config file.
---
Without this, Git would try to sign the commits when running
tests/git.scm, this was beacuse I had set ‘gpgSign = true’ in
~/.config/git/config. Setting the environment variable would remove
this impurity.
guix/tests/git.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/guix/tests/git.scm b/guix/tests/git.scm
index b8e5f7e643..e11541e83b 100644
--- a/guix/tests/git.scm
+++ b/guix/tests/git.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019, 2020 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -53,6 +54,7 @@ Return DIRECTORY on success."
(with-environment-variables
`(("GIT_CONFIG_NOSYSTEM" "1")
("GIT_ATTR_NOSYSTEM" "1")
+ ("GIT_CONFIG_GLOBAL" ,(string-append home "/.gitconfig"))
("HOME" ,home))
(apply invoke (git-command) "-C" directory
command args)))))
--
2.33.0
- [bug#50359] [PATCH] import: Add 'generic-git' updater., (continued)
- [bug#50359] [PATCH 0/3] Add 'generic-git' updater., Xinglu Chen, 2021/09/10
- [bug#50359] [PATCH 2/3] tests: git: Make 'tag' directive non-interactive., Xinglu Chen, 2021/09/10
- [bug#50359] [PATCH 3/3] import: Add 'generic-git' updater., Xinglu Chen, 2021/09/10
- [bug#50359] [PATCH 3/3] import: Add 'generic-git' updater., Ludovic Courtès, 2021/09/13
- [bug#50359] [PATCH 3/3] import: Add 'generic-git' updater., Sarah Morgensen, 2021/09/16
- [bug#50359] [PATCH 3/3] import: Add 'generic-git' updater., Xinglu Chen, 2021/09/16
- [bug#50359] [PATCH 3/3] import: Add 'generic-git' updater., Sarah Morgensen, 2021/09/16
- [bug#50359] [PATCH 3/3] import: Add 'generic-git' updater., Xinglu Chen, 2021/09/17
[bug#50359] [PATCH 1/3] tests: git: Don't read from the users global Git config file.,
Xinglu Chen <=
[bug#50359] [PATCH v3 0/3] Add 'generic-git' updater, Xinglu Chen, 2021/09/17
[bug#50359] [PATCH 3/3] import: Add 'generic-git' updater., iskarian, 2021/09/15