]> 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)
committerSimon Josefsson <simon@josefsson.org>
Sun, 13 Nov 2022 10:51:15 +0000 (11:51 +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 70ece5200a6f82ce7d0be86d97e54b3c913e5d70..d51a62a02311f1e9aef8866c6a00c2ae18be9006 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-11-03  Bruno Haible  <bruno@clisp.org>
 
        dynarray: Rename to glibc-internal/dynarray.
index 28292322a08c4cab102fb24a253cd7f0a153f149..d4e57437051a9b203d8fc52b78c7c240101e7abe 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