From patchwork Fri Sep 10 16:21:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 32752 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 14D1227BBE3; Fri, 10 Sep 2021 17:22:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D5A1E27BBE1 for ; Fri, 10 Sep 2021 17:22:13 +0100 (BST) Received: from localhost ([::1]:38826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOjI4-0004cO-VF for patchwork@mira.cbaines.net; Fri, 10 Sep 2021 12:22:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOjHv-0004W8-3O for guix-patches@gnu.org; Fri, 10 Sep 2021 12:22:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mOjHt-0005te-Rc for guix-patches@gnu.org; Fri, 10 Sep 2021 12:22:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mOjHt-0005c2-O0 for guix-patches@gnu.org; Fri, 10 Sep 2021 12:22:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50359] [PATCH 1/3] tests: git: Don't read from the users global Git config file. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 10 Sep 2021 16:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50359 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50359@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= , Sarah Morgensen Received: via spool by 50359-submit@debbugs.gnu.org id=B50359.163129088921505 (code B ref 50359); Fri, 10 Sep 2021 16:22:01 +0000 Received: (at 50359) by debbugs.gnu.org; 10 Sep 2021 16:21:29 +0000 Received: from localhost ([127.0.0.1]:39064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOjHN-0005an-64 for submit@debbugs.gnu.org; Fri, 10 Sep 2021 12:21:29 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:37028 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOjHK-0005aU-VP for 50359@debbugs.gnu.org; Fri, 10 Sep 2021 12:21:27 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1631290879; bh=D1fehBRccifXBpnZDbd2xCB6H0KHAxZb9ggk4wYluzo=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=VzHe2oGMqjxV6gRWm3m2hRccE4+9farsMJ69LkE8NdVQ/jCig24BtW+Jc45ca8Bne l9lAfXeTPlbjaYyOoCFXoI+nRRfRyoU/Z8pOn2Gm1lGF/Ru3u1dDtaM0NPBbjU67gq rziRMTdkN9oeUilib174bvDBOf/Qd49Ko8cv7Ijg= In-Reply-To: References: Message-Id: <04db258c6eb1b90dca9f2b32a7bc40ed8e39c471.1631290349.git.public@yoctocell.xyz> Date: Fri, 10 Sep 2021 18:21:17 +0200 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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 +;;; Copyright © 2021 Xinglu Chen ;;; ;;; 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)))))