tests: fix new git protocol policy in convert-git.t stable
authorpacien <pacien.trangirard@pacien.net>
Mon, 14 Nov 2022 20:21:53 +0100
branchstable
changeset 49590 2b658c6a9c4b
parent 49584 684e0085fed7
child 49591 9e5b411b3b19
tests: fix new git protocol policy in convert-git.t Recent versions of git restrict the use of the "file" protocol for security reasons (https://github.com/git/git/commit/a1d4f67). This broke this test, which failed with the following hidden error: "fatal: transport 'file' not allowed". This patch relaxes the git configuration for the test to solve this.
tests/test-convert-git.t
--- a/tests/test-convert-git.t	Mon Nov 14 10:57:44 2022 +0100
+++ b/tests/test-convert-git.t	Mon Nov 14 20:21:53 2022 +0100
@@ -2,6 +2,7 @@
 
   $ git config -f $HOME/.gitconfig init.defaultBranch master
   $ git config -f $HOME/.gitconfig core.autocrlf false
+  $ git config -f $HOME/.gitconfig protocol.file.allow always
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "convert=" >> $HGRCPATH
   $ cat >> $HGRCPATH <<EOF