]> Savannah Git Hosting - gnulib.git/commitdiff
vc-list-files-tests: Avoid OpenPGP private key operations.
authorSimon Josefsson <simon@josefsson.org>
Sun, 13 Nov 2022 10:50:51 +0000 (11:50 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 1 Jan 2023 09:16:32 +0000 (10:16 +0100)
* tests/test-vc-list-files-git.sh (GIT_CONFIG_GLOBAL): Set it to /dev/null.

ChangeLog
tests/test-vc-list-files-git.sh

index 9d58592ffe8a1c0e2178ca3c7c2f1eb5454cd7cb..3d27b3b19d9381b580b3fb0c5bb1bee30a97a0be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-11-13  Simon Josefsson  <simon@josefsson.org>
+
+       vc-list-files-tests: Avoid OpenPGP private key operations.
+       * tests/test-vc-list-files-git.sh (GIT_CONFIG_GLOBAL): Set it to
+       /dev/null.
+
 2022-10-31  Simon Josefsson  <simon@josefsson.org>
 
        maintainer-makefile: Fix Apple Xcode 'make syntax-check'.
index 8e085eaa36eb4b341be69190a21578138b27a018..881df48930c9079953e1d44a935ccc79fcf17244 100755 (executable)
 tmpdir=vc-git-$$
 GIT_DIR= GIT_WORK_TREE=; unset GIT_DIR GIT_WORK_TREE
 
+# Ignore local git configurations that may interact badly with
+# commands below.  For example, if the user has set
+# commit.gpgsign=true in ~/.gitconfig the 'git commit' below will
+# require a OpenPGP private key operation which trigger PIN prompts
+# and unwanted hardware access on the developer's machine.
+GIT_CONFIG_GLOBAL=/dev/null; export GIT_CONFIG_GLOBAL
+
 fail=1
 mkdir $tmpdir && cd $tmpdir &&
   # without git, skip the test