# HG changeset patch # User pacien # Date 2022-11-14 19:21:53 # Node ID 2b658c6a9c4bd77afaad7139746a5691a6dcd159 # Parent 684e0085fed7832d95093bc1a451e8a55be80726 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. diff --git a/tests/test-convert-git.t b/tests/test-convert-git.t --- a/tests/test-convert-git.t +++ b/tests/test-convert-git.t @@ -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 <