mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
tests: git: Don't read from the users global Git config file.
* guix/tests/git (populate-git-repository): Set the GIT_CONFIG_GLOBAL environment variable to the temporary Git config file. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
358ad74f41
commit
4674738cdb
1 changed files with 2 additions and 0 deletions
|
@ -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 @@ (define (git command . args)
|
|||
(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)))))
|
||||
|
|
Loading…
Reference in a new issue