Mercurial > hg
changeset 49590:2b658c6a9c4b stable
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.
author | pacien <pacien.trangirard@pacien.net> |
---|---|
date | Mon, 14 Nov 2022 20:21:53 +0100 |
parents | 684e0085fed7 |
children | 9e5b411b3b19 |
files | tests/test-convert-git.t |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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